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

Color Class

This is a base class for color values used in Graphics Mill for .NET.

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


Visual Basic
Public MustInherit Class Color _
	Implements ICloneable
public abstract class Color : ICloneable


This is a base class for all colors in Graphics Mill for .NET. It can be used as a class factory - you can create RgbColor with FromRgb(Byte, Byte, Byte), FromArgb(Byte, Byte, Byte, Byte) methods, and its siblings; CmykColor with FromCmyk(Byte, Byte, Byte, Byte), FromAcmyk(Byte, Byte, Byte, Byte, Byte), etc; GrayScaleColor with FromGrayScale(Byte), FromAGrayScale(Byte, Byte), etc. Also there are extended analogues, which have a suffix 32.

Also you can get components (channels) by index using GetChannel(Int32) method. A number of components can be returned by ChannelCount property.


Visual Basic
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0)
Aurigma.GraphicsMill.RgbColor rgb = 
    Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0);

Inheritance Hierarchy

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