FormatConvertedBitmap.AlphaThreshold Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the alpha channel threshold of a bitmap when converting to palletized formats that recognizes an alpha color.
public:
property double AlphaThreshold { double get(); void set(double value); };
public double AlphaThreshold { get; set; }
member this.AlphaThreshold : double with get, set
Public Property AlphaThreshold As Double
The alpha channel threshold for this FormatConvertedBitmap. The default value is 0.0.
The AlphaThreshold value is used to determine what level of opacity will be mapped to the fully transparent color in the converted format. A value of 9.8 implies that any pixel with an alpha value of less than 25 will be mapped to the transparent color. A value of 100 maps all pixels which are not fully opaque to the transparent color.
The destination palette should provide a transparent color; otherwise, the transparent color will be the one closest to zero, often black.
Identifier field | AlphaThresholdProperty |
Metadata properties set to true |
None |
Produkt | Versjoner |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: