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

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

Syntax

Visual Basic (Declaration)
Public MustInherit Class Color _
	Implements ICloneable
C#
public abstract class Color : ICloneable
Visual C++
public ref class Color abstract : ICloneable

Remarks

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.

Examples

 Copy imageCopy Code
        Dim rgb As Aurigma.GraphicsMill.RgbColor = _
         Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0)
 Copy imageCopy Code
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