This documentation is for the old version. Go to the latest Graphics Mill docs

PixelFormatConverter.ConvertColor Method (Color, ColorProfile)

Converts Color value into another color space. Color management is applied.

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


Visual Basic
Public Function ConvertColor ( _
	color As Color, _
	profile As ColorProfile _
) As Color
public Color ConvertColor(
	Color color,
	ColorProfile profile



Type: Aurigma.GraphicsMill.Color

Color to convert to another color space.

Type: Aurigma.GraphicsMill.ColorProfile

ColorProfile class instance that is used as an input profile.

Return Value

Color converted to another color space.


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

During conversion with this method, the color management will be applied. Argument profile will be used as an input profile, output profiles are specified by CmykColorProfile, RgbColorProfile, and GrayScaleColorProfile properties. Property TargetColorProfile will be used as well.


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

See Also