BitmapEncoder.ColorContexts Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
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: