[]
        
(Showing Draft Content)

C1.Util.DX.WIC.BitmapDecoder.TryGetColorContexts

TryGetColorContexts Method

TryGetColorContexts(ImagingFactory, out ColorContext[])

Get the ColorContext of the image (if any)

Declaration
public HResult TryGetColorContexts(ImagingFactory imagingFactory, out ColorContext[] colorContexts)
Parameters
Type Name Description
ImagingFactory imagingFactory

The factory for creating new color contexts

ColorContext[] colorContexts

The color context array, or null

Returns
Type Description
HResult
Remarks

When the image format does not support color contexts,

TryGetColorContexts(ImagingFactory)

Get the ColorContext of the image (if any)

Declaration
public ColorContext[] TryGetColorContexts(ImagingFactory imagingFactory)
Parameters
Type Name Description
ImagingFactory imagingFactory
Returns
Type Description
ColorContext[]

null if the decoder does not support color contexts; otherwise an array of zero or more ColorContext objects