Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 AlphaThreshold Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
FormatConvertedBitmap..::.AlphaThreshold Property

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
Visual Basic (Declaration)
Public Property AlphaThreshold As Double
Visual Basic (Usage)
Dim instance As FormatConvertedBitmap
Dim value As Double

value = instance.AlphaThreshold

instance.AlphaThreshold = value
C#
public double AlphaThreshold { get; set; }
Visual C++
public:
property double AlphaThreshold {
    double get ();
    void set (double value);
}
JScript
public function get AlphaThreshold () : double
public function set AlphaThreshold (value : double)
XAML Attribute Usage
<object AlphaThreshold="double" .../>

Property Value

Type: System..::.Double
The alpha channel threshold for this FormatConvertedBitmap. The default value is 0.0.

Identifier field

AlphaThresholdProperty

Metadata properties set to true

None

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.

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.

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker