A matrix which can be used for color transformation.
Hierarchy
System.Object
    WebSupergoo.ImageGlue7.XColorMatrix
Notes

This class is sealed. It cannot be derived from.

This represents a 5x4 matrix which can be used to modify color channels. The matrix consists of a 4x4 core, which is applied to the a four channel RGBA representation of the color channels of each pixel. The last row of the matrix represents a translation operation to be applied to the channels.

From a mathematical perspective, the output values are formed by multiplying the row vector [ r, g, b, a, max ] (on the left) with the color transform matrix (on the right), where max is the maximum intensity of color component.

Methods
Method Description
XColorMatrix XColorMatrix constructor.
S» MakeAlphaToGray Create a color matrix that converts an alpha channel to gray.
S» MakeBrightness Create a color matrix that adjusts brightness.
S» MakeGrayscale Create a color matrix that converts an image to grayscale.
S» MakeSaturation Create a color matrix that adjusts the color saturation of an image.
Properties
Property Description
ColorMatrix The ColorMatrix representation.
Elements The elements within the matrix.
Elements2D The elements within the matrix as a two dimensional array.
ElementsJagged The elements within the matrix as a jagged array.
Item[Int32, Int32] An element within the matrix.
M00 The element at row 0 and column 0.
M01 The element at row 0 and column 1.
M02 The element at row 0 and column 2.
M03 The element at row 0 and column 3.
M10 The element at row 1 and column 0.
M11 The element at row 1 and column 1.
M12 The element at row 1 and column 2.
M13 The element at row 1 and column 3.
M20 The element at row 2 and column 0.
M21 The element at row 2 and column 1.
M22 The element at row 2 and column 2.
M23 The element at row 2 and column 3.
M30 The element at row 3 and column 0.
M31 The element at row 3 and column 1.
M32 The element at row 3 and column 2.
M33 The element at row 3 and column 3.
M40 The element at row 4 and column 0.
M41 The element at row 4 and column 1.
M42 The element at row 4 and column 2.
M43 The element at row 4 and column 3.
Example

None.