FormatConvertedBitmap Constructor (BitmapSource, PixelFormat, BitmapPalette, Double)

 

Initializes a new instance of the FormatConvertedBitmap class that has the specified Source, DestinationFormat, DestinationPalette, and AlphaThreshold.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public FormatConvertedBitmap(
	BitmapSource source,
	PixelFormat destinationFormat,
	BitmapPalette destinationPalette,
	double alphaThreshold
)

Parameters

source
Type: System.Windows.Media.Imaging.BitmapSource

The Source of the new FormatConvertedBitmap instance.

destinationFormat
Type: System.Windows.Media.PixelFormat

The DestinationFormat of the new FormatConvertedBitmap instance.

destinationPalette
Type: System.Windows.Media.Imaging.BitmapPalette

The DestinationPalette of the new FormatConvertedBitmap instance if destinationFormat is an indexed format.

alphaThreshold
Type: System.Double

The AlphaThreshold of the new FormatConvertedBitmap instance.

FormatConvertedBitmap objects created using this constructor are automatically initialized. After initialization, property changes are ignored.

.NET Framework
Available since 3.0
Return to top
Show: