A color in RGB, CMYK or Grayscale.
Hierarchy
System.Object
System.ValueType
WebSupergoo.ImageGlue8.Color
Interfaces
System.IEquatable<Color>
Notes

This class is sealed. It cannot be derived from.

Methods
Method Description
Color Create a Color initialized to black.
Clamp Clamps the floating-point components to a range between 0 and 1.
Equals Determines whether the specified object is a Color, value identical to this one.
S» FromArgb Creates a Color from an Int32 value representing ARGB in little endian format.
S» FromComponents Creates a fully opaque Color from the specified floating-point color values. The number of values determines the color space - one for grayscale, three for RGB and four for CMYK.
GetChannel Gets a component value specified by color channel.
GetHashCode Obtains a hash code for the Color.
SetChannel Sets a component value specified by color channel.
ToString Converts the object to a string representation such as 'rgb(255, 0, 0)'.
Operators
Operator Description
Equality Compares two Color instances for equality.
Inequality Compares two Color instances for inequality.
Properties
Property Description
A Gets or sets the alpha component. This value should lie between zero and 255 where zero is fully transparent and 255 is fully opaque.
B Gets or sets the blue component in RGB - a value between 0 and 255.
C Gets or sets the cyan component in CMYK - a percentage value between 0 and 100.
ColorSpace The color space. Setting the color space will result in the color being reset to opaque black.
Components The number of components in the color space.
G Gets or sets the green component in RGB - a value between 0 and 255.
Gy Gets or sets the grayscale component in Gray - a value between 0 and 255 representing the lightness of the shade.
Item[Int32] An indexer providing the components of the color in absolute values between 0 and 1. The order of components is RGB, CMYK or Gray depending on color space. To access alpha you can pass in an index of -1.
K Gets or sets the black component in CMYK - a percentage value between 0 and 100 representing the amount of black ink.
M Gets or sets the magenta component in CMYK - a percentage value between 0 and 100.
R Gets or sets the red component in RGB - a value between 0 and 255.
Y Gets or sets the yellow component in CMYK - a percentage value between 0 and 100.
Example

None.