Rediger

Del via


FormatConvertedBitmap.AlphaThreshold Property

Definition

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

Property Value

The alpha channel threshold for this FormatConvertedBitmap. The default value is 0.0.

Remarks

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.

Dependency Property Information

Identifier field AlphaThresholdProperty
Metadata properties set to true None

Applies to