BitmapDecoder.ColorContexts Property


Gets a value that represents the color profile associated with a bitmap, if one is defined.

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

public virtual ReadOnlyCollection<ColorContext> ColorContexts { get; }

Property Value

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

An instance of ColorContext that represents the embedded color profile of the bitmap. If no color profile has been defined, this property returns null. This property has no default value.

.NET Framework
Available since 3.0
Return to top