BitmapEncoder::ColorContexts Property
.NET Framework (current version)
Gets or sets a value that represents the color profile that is associated with this encoder.
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
Available since 3.0
Show: