Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

RgbColor Class

This class represents color value in RGB color space.

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

Syntax

Visual Basic
Public Class RgbColor _
	Inherits Color
C#
public class RgbColor : Color

Remarks

To get access to red, green, and blue component use R, G, and B properties accordingly. Alpha channel is available through A property. Also there are extended versions of these properties (that returns 16-bit version of the component). These properties have a suffix 32 (e.g. R32, etc).

Also you can get components by index using GetChannel(Int32) method.

This class implements cast operator for other color types as well as for System.Drawing.Color. Note, when you convert colors, no color management is applied. To convert colors with color management, use ConvertColor(Color, ColorProfile) method of PixelFormatConverter class.

There are a number static properties which return predefined colors, such as Red, Maroon, Pink, SeaGreen, etc.

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Color
L Aurigma.GraphicsMill.RgbColor

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference