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

Color.ConvertColorSpace Method

Converts color value to another color space.

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

Syntax

Visual Basic
Public Overridable Function ConvertColorSpace ( _
	colorSpace As ColorSpace _
) As Color
C#
public virtual Color ConvertColorSpace(
	ColorSpace colorSpace
)

Parameters

colorSpace

Type: Aurigma.GraphicsMill.ColorSpace

ColorSpace value that specifies the color space to convert color to.

Return Value

Color class instance converted to specified color space.

Remarks

No color management is applied during conversion with this method. That's why color conversion is quite fast, but inaccurate.

Examples

Visual Basic
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.RgbColor.Red

Dim cmyk As Aurigma.GraphicsMill.CmykColor = _
 rgb.ConvertColorSpace(Aurigma.GraphicsMill.ColorSpace.Cmyk)
C#
Aurigma.GraphicsMill.RgbColor rgb = Aurigma.GraphicsMill.RgbColor.Red;

Aurigma.GraphicsMill.CmykColor cmyk = rgb;

See Also

Reference