BitmapEncoder::Palette Property

 

Gets or sets a value that represents the BitmapPalette of an encoded bitmap.

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

public:
property BitmapPalette^ Palette {
	virtual BitmapPalette^ get();
	virtual void set(BitmapPalette^ value);
}

Property Value

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

An instance of BitmapPalette.

Exception Condition
ArgumentNullException

The BitmapPalette value that is passed to the encoder is null.

Only Tagged Image File Format (TIFF) and Graphics Interchange Format (GIF) images (and some older, non-standard bitmap (BMP) images) support palettes.

The following example demonstrates how to apply a custom palette to a Tagged Image File Format (TIFF) image and subsequently encode it.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: