BitmapEncoder.ColorContexts Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 virtual ReadOnlyCollection<ColorContext> ColorContexts { get; set; }

Property Value

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

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

Exception Condition

The encoder does not support color profiles.


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

.NET Framework
Available since 3.0
Return to top