ColorMatrix Class
Contents
[
Hide
]Summary: 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.
Module: aspose.psd
Full Name: aspose.psd.ColorMatrix
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
ColorMatrix() | Initializes a new instance of the ColorMatrix class. |
ColorMatrix(new_color_matrix) | Initializes a new instance of the ColorMatrix class using the elements in the specified matrix |
Properties
Name | Type | Access | Description |
---|---|---|---|
MATRIX_DIMENSIONS_COUNT [static] | int | r | The number of matrix dimensions. |
MATRIX_DIMENSION_ELEMENTS_COUNT [static] | int | r | The number of elements in matrix dimension. |
MATRIX_TOTAL_ELEMENTS_COUNT [static] | int | r | The total number of elements in the matrix. |
matrix00 | float | r/w | Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix. |
matrix01 | float | r/w | Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix. |
matrix02 | float | r/w | Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix. |
matrix03 | float | r/w | Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix. |
matrix04 | float | r/w | Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix. |
matrix10 | float | r/w | Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix. |
matrix11 | float | r/w | Gets or sets the element at the first row and first column of this ColorMatrix. |
matrix12 | float | r/w | Gets or sets the element at the first row and second column of this ColorMatrix. |
matrix13 | float | r/w | Gets or sets the element at the first row and third column of this ColorMatrix. |
matrix14 | float | r/w | Gets or sets the element at the first row and fourth column of this ColorMatrix. |
matrix20 | float | r/w | Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix. |
matrix21 | float | r/w | Gets or sets the element at the second row and first column of this ColorMatrix. |
matrix22 | float | r/w | Gets or sets the element at the second row and second column of this ColorMatrix. |
matrix23 | float | r/w | Gets or sets the element at the second row and third column of this ColorMatrix. |
matrix24 | float | r/w | Gets or sets the element at the second row and fourth column of this ColorMatrix. |
matrix30 | float | r/w | Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix. |
matrix31 | float | r/w | Gets or sets the element at the third row and first column of this ColorMatrix. |
matrix32 | float | r/w | Gets or sets the element at the third row and second column of this ColorMatrix. |
matrix33 | float | r/w | Gets or sets the element at the third row and third column of this ColorMatrix. |
matrix34 | float | r/w | Gets or sets the element at the third row and fourth column of this ColorMatrix. |
matrix40 | float | r/w | Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix. |
matrix41 | float | r/w | Gets or sets the element at the fourth row and first column of this ColorMatrix. |
matrix42 | float | r/w | Gets or sets the element at the fourth row and second column of this ColorMatrix. |
matrix43 | float | r/w | Gets or sets the element at the fourth row and third column of this ColorMatrix. |
matrix44 | float | r/w | Gets or sets the element at the fourth row and fourth column of this ColorMatrix. |
Methods
Name | Description |
---|---|
get_matrix() | Gets the matrix values. |
Constructor: ColorMatrix()
ColorMatrix()
Initializes a new instance of the ColorMatrix class.
Constructor: ColorMatrix(new_color_matrix)
ColorMatrix(new_color_matrix)
Initializes a new instance of the ColorMatrix class using the elements in the specified matrix
Parameters:
Parameter | Type | Description |
---|---|---|
new_color_matrix | float[] | The values of the elements for the new ColorMatrix. |
Method: get_matrix()
get_matrix()
Gets the matrix values.
Returns
Type | Description |
---|---|
float[] | The matrix values array. |