FormatConvertedBitmap Constructors

Definition

Initializes a new instance of the FormatConvertedBitmap class.

Overloads

FormatConvertedBitmap()

Initializes a new instance of the FormatConvertedBitmap class.

C#
public FormatConvertedBitmap();

Remarks

FormatConvertedBitmap implements the ISupportInitialize interface to optimize initialization on multiple properties. To initialize a FormatConvertedBitmap created using this constructor, you must perform property initialization between BeginInit and EndInit calls.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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, 10

FormatConvertedBitmap(BitmapSource, PixelFormat, BitmapPalette, Double)

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

C#
public FormatConvertedBitmap(System.Windows.Media.Imaging.BitmapSource source, System.Windows.Media.PixelFormat destinationFormat, System.Windows.Media.Imaging.BitmapPalette destinationPalette, double alphaThreshold);

Parameters

source
BitmapSource

The Source of the new FormatConvertedBitmap instance.

destinationFormat
PixelFormat

The DestinationFormat of the new FormatConvertedBitmap instance.

destinationPalette
BitmapPalette

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

alphaThreshold
Double

The AlphaThreshold of the new FormatConvertedBitmap instance.

Remarks

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

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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, 10