Class ColorMatrix
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
- Inheritance
-
ColorMatrix
- Inherited Members
Constructors
ColorMatrix()
Initializes a new instance of the ColorMatrix class.
public ColorMatrix()
ColorMatrix(float[][])
Initializes a new instance of the ColorMatrix class using the elements in the specified matrix newColorMatrix
.
public ColorMatrix(float[][] newColorMatrix)
Parameters
newColorMatrix
float[][]The values of the elements for the new ColorMatrix.
Fields
MatrixDimensionElementsCount
The number of elements in matrix dimension.
public const int MatrixDimensionElementsCount = 5
Field Value
MatrixDimensionsCount
The number of matrix dimensions.
public const int MatrixDimensionsCount = 5
Field Value
MatrixTotalElementsCount
The total number of elements in the matrix.
public const int MatrixTotalElementsCount = 25
Field Value
Properties
this[int, int]
Gets or sets the element at the specified row and column in the ColorMatrix.
public float this[int row, int column] { get; set; }
Parameters
Property Value
- float
The element at the specified row and column.
Matrix00
Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix.
public float Matrix00 { get; set; }
Property Value
- float
The element at the 0 row and 0 column of this ColorMatrix.
Matrix01
Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix.
public float Matrix01 { get; set; }
Property Value
- float
The element at the 0 row and first column of this ColorMatrix .
Matrix02
Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix.
public float Matrix02 { get; set; }
Property Value
- float
The element at the 0 row and second column of this ColorMatrix.
Matrix03
Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix.
public float Matrix03 { get; set; }
Property Value
- float
The element at the 0 row and third column of this ColorMatrix.
Matrix04
Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix.
public float Matrix04 { get; set; }
Property Value
- float
The element at the 0 row and fourth column of this ColorMatrix.
Matrix10
Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix.
public float Matrix10 { get; set; }
Property Value
- float
The element at the first row and 0 column of this ColorMatrix.
Matrix11
Gets or sets the element at the first row and first column of this ColorMatrix.
public float Matrix11 { get; set; }
Property Value
- float
The element at the first row and first column of this ColorMatrix.
Matrix12
Gets or sets the element at the first row and second column of this ColorMatrix.
public float Matrix12 { get; set; }
Property Value
- float
The element at the first row and second column of this ColorMatrix.
Matrix13
Gets or sets the element at the first row and third column of this ColorMatrix.
public float Matrix13 { get; set; }
Property Value
- float
The element at the first row and third column of this ColorMatrix.
Matrix14
Gets or sets the element at the first row and fourth column of this ColorMatrix.
public float Matrix14 { get; set; }
Property Value
- float
The element at the first row and fourth column of this ColorMatrix.
Matrix20
Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix.
public float Matrix20 { get; set; }
Property Value
- float
The element at the second row and 0 column of this ColorMatrix.
Matrix21
Gets or sets the element at the second row and first column of this ColorMatrix.
public float Matrix21 { get; set; }
Property Value
- float
The element at the second row and first column of this ColorMatrix.
Matrix22
Gets or sets the element at the second row and second column of this ColorMatrix.
public float Matrix22 { get; set; }
Property Value
- float
The element at the second row and second column of this ColorMatrix.
Matrix23
Gets or sets the element at the second row and third column of this ColorMatrix.
public float Matrix23 { get; set; }
Property Value
- float
The element at the second row and third column of this ColorMatrix.
Matrix24
Gets or sets the element at the second row and fourth column of this ColorMatrix.
public float Matrix24 { get; set; }
Property Value
- float
The element at the second row and fourth column of this ColorMatrix.
Matrix30
Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix.
public float Matrix30 { get; set; }
Property Value
- float
The element at the third row and 0 column of this ColorMatrix.
Matrix31
Gets or sets the element at the third row and first column of this ColorMatrix.
public float Matrix31 { get; set; }
Property Value
- float
The element at the third row and first column of this ColorMatrix.
Matrix32
Gets or sets the element at the third row and second column of this ColorMatrix.
public float Matrix32 { get; set; }
Property Value
- float
The element at the third row and second column of this ColorMatrix.
Matrix33
Gets or sets the element at the third row and third column of this ColorMatrix.
public float Matrix33 { get; set; }
Property Value
- float
The element at the third row and third column of this ColorMatrix.
Matrix34
Gets or sets the element at the third row and fourth column of this ColorMatrix.
public float Matrix34 { get; set; }
Property Value
- float
The element at the third row and fourth column of this ColorMatrix.
Matrix40
Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix.
public float Matrix40 { get; set; }
Property Value
- float
The element at the fourth row and 0 column of this ColorMatrix.
Matrix41
Gets or sets the element at the fourth row and first column of this ColorMatrix.
public float Matrix41 { get; set; }
Property Value
- float
The element at the fourth row and first column of this ColorMatrix.
Matrix42
Gets or sets the element at the fourth row and second column of this ColorMatrix.
public float Matrix42 { get; set; }
Property Value
- float
The element at the fourth row and second column of this ColorMatrix.
Matrix43
Gets or sets the element at the fourth row and third column of this ColorMatrix.
public float Matrix43 { get; set; }
Property Value
- float
The element at the fourth row and third column of this ColorMatrix.
Matrix44
Gets or sets the element at the fourth row and fourth column of this ColorMatrix.
public float Matrix44 { get; set; }
Property Value
- float
The element at the fourth row and fourth column of this ColorMatrix.
Methods
GetMatrix()
Gets the matrix values.
public float[][] GetMatrix()
Returns
- float[][]
The matrix values array.