BitmapEncoder::ColorContexts Property

 

Gets or sets a value that represents the color profile that is associated with this encoder.

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

public:
property ReadOnlyCollection<ColorContext^>^ ColorContexts {
	virtual ReadOnlyCollection<ColorContext^>^ get();
	virtual void set(ReadOnlyCollection<ColorContext^>^ value);
}

Property Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<ColorContext^>^

The collection of ColorContext objects that represents the color profiles that this encoder uses.

Exception Condition
InvalidOperationException

The encoder does not support color profiles.

ArgumentNullException

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

.NET Framework
Available since 3.0
Return to top
Show: