ColorConverter.ConvertColor Method (Color, ColorProfile)

Converts a given color into another color space. Color management is applied.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public Color ConvertColor(
	Color color,
	ColorProfile colorProfile
)

Parameters

color

Type: Aurigma.GraphicsMill.Color

A Color to convert.
colorProfile

Type: Aurigma.GraphicsMill.ColorProfile

An input ColorProfile.

Return Value

A Color converted to another color space.

Remarks

The destination color space is specified by the DestinationPixelFormat property. The color space of this pixel format is a destination color space.

This method allows converting colors using color management. The provided colorProfile used as an input profile, output profile should be specified by the DestinationProfile property. The TargetDeviceProfile property will be used as well.

Note

If an output profile is not specified or the ColorManagementEngine property is None, color management is disabled.

See Also

Reference