Class ColorMatrix

ColorMatrix class

Defines a 5 x 5 matrix that contains the coordinates for the RGBA space. Several methods of the ImageAttributes class adjust image colors by using a color matrix. This class cannot be inherited.

public sealed class ColorMatrix

Constructors

NameDescription
ColorMatrix()Initializes a new instance of the ColorMatrix class.
ColorMatrix(float[][])Initializes a new instance of the ColorMatrix class using the elements in the specified matrix newColorMatrix.

Properties

NameDescription
Item { get; set; }Gets or sets the element at the specified row and column in the ColorMatrix.
Matrix00 { get; set; }Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix.
Matrix01 { get; set; }Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix.
Matrix02 { get; set; }Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix.
Matrix03 { get; set; }Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix.
Matrix04 { get; set; }Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix.
Matrix10 { get; set; }Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix.
Matrix11 { get; set; }Gets or sets the element at the first row and first column of this ColorMatrix.
Matrix12 { get; set; }Gets or sets the element at the first row and second column of this ColorMatrix.
Matrix13 { get; set; }Gets or sets the element at the first row and third column of this ColorMatrix.
Matrix14 { get; set; }Gets or sets the element at the first row and fourth column of this ColorMatrix.
Matrix20 { get; set; }Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix.
Matrix21 { get; set; }Gets or sets the element at the second row and first column of this ColorMatrix.
Matrix22 { get; set; }Gets or sets the element at the second row and second column of this ColorMatrix.
Matrix23 { get; set; }Gets or sets the element at the second row and third column of this ColorMatrix.
Matrix24 { get; set; }Gets or sets the element at the second row and fourth column of this ColorMatrix.
Matrix30 { get; set; }Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix.
Matrix31 { get; set; }Gets or sets the element at the third row and first column of this ColorMatrix.
Matrix32 { get; set; }Gets or sets the element at the third row and second column of this ColorMatrix.
Matrix33 { get; set; }Gets or sets the element at the third row and third column of this ColorMatrix.
Matrix34 { get; set; }Gets or sets the element at the third row and fourth column of this ColorMatrix.
Matrix40 { get; set; }Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix.
Matrix41 { get; set; }Gets or sets the element at the fourth row and first column of this T:.ColorMatrix.
Matrix42 { get; set; }Gets or sets the element at the fourth row and second column of this ColorMatrix.
Matrix43 { get; set; }Gets or sets the element at the fourth row and third column of this ColorMatrix.
Matrix44 { get; set; }Gets or sets the element at the fourth row and fourth column of this ColorMatrix.

See Also