Gets or sets the alpha channel threshold of a bitmap when converting to palletized formats that recognizes an alpha color. This is a dependency property.
Namespace:
System.Windows.Media.Imaging
Assembly:
PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

Syntax
Visual Basic (Declaration)
Public Property AlphaThreshold As Double
Dim instance As FormatConvertedBitmap
Dim value As Double
value = instance.AlphaThreshold
instance.AlphaThreshold = value
public double AlphaThreshold { get; set; }
public:
property double AlphaThreshold {
double get ();
void set (double value);
}
public function get AlphaThreshold () : double
public function set AlphaThreshold (value : double)
<object AlphaThreshold="double" .../>

Dependency Property Information

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.

Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information
.NET Framework
Supported in: 3.5, 3.0

See Also