Editar

Compartilhar via


FormatConvertedBitmap Constructors

Definition

Initializes a new instance of the FormatConvertedBitmap class.

Overloads

FormatConvertedBitmap()

Initializes a new instance of the FormatConvertedBitmap class.

FormatConvertedBitmap(BitmapSource, PixelFormat, BitmapPalette, Double)

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

FormatConvertedBitmap()

Initializes a new instance of the FormatConvertedBitmap class.

public:
 FormatConvertedBitmap();
public FormatConvertedBitmap ();
Public Sub New ()

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

FormatConvertedBitmap(BitmapSource, PixelFormat, BitmapPalette, Double)

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

public:
 FormatConvertedBitmap(System::Windows::Media::Imaging::BitmapSource ^ source, System::Windows::Media::PixelFormat destinationFormat, System::Windows::Media::Imaging::BitmapPalette ^ destinationPalette, double alphaThreshold);
public FormatConvertedBitmap (System.Windows.Media.Imaging.BitmapSource source, System.Windows.Media.PixelFormat destinationFormat, System.Windows.Media.Imaging.BitmapPalette destinationPalette, double alphaThreshold);
new System.Windows.Media.Imaging.FormatConvertedBitmap : System.Windows.Media.Imaging.BitmapSource * System.Windows.Media.PixelFormat * System.Windows.Media.Imaging.BitmapPalette * double -> System.Windows.Media.Imaging.FormatConvertedBitmap
Public Sub New (source As BitmapSource, destinationFormat As PixelFormat, destinationPalette As BitmapPalette, alphaThreshold As Double)

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