Table of Contents

Method Get

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Core.dll

Get(ManagedColor, IDeviceColorContext)

Retrieves the color in the requested color space.

public static ColorRgba128Float Get(this ManagedColor color, IDeviceColorContext dstColorContext)

Parameters

color ManagedColor

The managed color.

dstColorContext IDeviceColorContext
The color context for the color space that the color is being requested in.

Returns

ColorRgba128Float

Get(ManagedColor, IDeviceContext)

Retrieves the color in the color space associated with the given IDeviceContext.

public static ColorRgba128Float Get(this ManagedColor color, IDeviceContext deviceContext)

Parameters

color ManagedColor

The managed color list.

deviceContext IDeviceContext

The device context. If automatic color management is being used, then the device context's color context will be used. The color context is retrieved using the GetColorContext extension method.

Returns

ColorRgba128Float