public final class ColorMatrix extends Object
Defines a 5 x 5 matrix that contains the coordinates for the RGBA space. Several methods of the com.aspose.imaging.ImageAttributes
class adjust image colors by using a color matrix. This class cannot be inherited.
Modifier and Type | Field and Description |
---|---|
static int |
MATRIX_DIMENSION_ELEMENTS_COUNT
The number of elements in matrix dimension.
|
static int |
MATRIX_DIMENSIONS_COUNT
The number of matrix dimensions.
|
static int |
MATRIX_TOTAL_ELEMENTS_COUNT
The total number of elements in the matrix.
|
Constructor and Description |
---|
ColorMatrix()
Initializes a new instance of the
Aspose.Imaging.ColorMatrix class. |
ColorMatrix(float[][] newColorMatrix)
Initializes a new instance of the
Aspose.Imaging.ColorMatrix class using the elements in the specified matrix newColorMatrix . |
Modifier and Type | Method and Description |
---|---|
float |
get_Item(int row,
int column)
Gets the element at the specified row and column in the
Aspose.Imaging.ColorMatrix . |
float[][] |
getMatrix()
Gets the matrix values.
|
float |
getMatrix00()
Gets the element at the 0 (zero) row and 0 column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix01()
Gets the element at the 0 (zero) row and first column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix02()
Gets the element at the 0 (zero) row and second column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix03()
Gets the element at the 0 (zero) row and third column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix04()
Gets the element at the 0 (zero) row and fourth column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix10()
Gets the element at the first row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix11()
Gets the element at the first row and first column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix12()
Gets the element at the first row and second column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix13()
Gets the element at the first row and third column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix14()
Gets the element at the first row and fourth column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix20()
Gets the element at the second row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix21()
Gets the element at the second row and first column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix22()
Gets the element at the second row and second column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix23()
Gets the element at the second row and third column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix24()
Gets the element at the second row and fourth column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix30()
Gets the element at the third row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix31()
Gets the element at the third row and first column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix32()
Gets the element at the third row and second column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix33()
Gets the element at the third row and third column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix34()
Gets the element at the third row and fourth column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix40()
Gets the element at the fourth row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix41()
Gets the element at the fourth row and first column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix42()
Gets the element at the fourth row and second column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix43()
Gets the element at the fourth row and third column of this
Aspose.Imaging.ColorMatrix . |
float |
getMatrix44()
Gets the element at the fourth row and fourth column of this
Aspose.Imaging.ColorMatrix . |
void |
set_Item(int row,
int column,
float value)
Sets the element at the specified row and column in the
Aspose.Imaging.ColorMatrix . |
void |
setMatrix00(float value)
Sets the element at the 0 (zero) row and 0 column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix01(float value)
Sets the element at the 0 (zero) row and first column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix02(float value)
Sets the element at the 0 (zero) row and second column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix03(float value)
Sets the element at the 0 (zero) row and third column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix04(float value)
Sets the element at the 0 (zero) row and fourth column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix10(float value)
Sets the element at the first row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix11(float value)
Sets the element at the first row and first column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix12(float value)
Sets the element at the first row and second column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix13(float value)
Sets the element at the first row and third column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix14(float value)
Sets the element at the first row and fourth column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix20(float value)
Sets the element at the second row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix21(float value)
Sets the element at the second row and first column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix22(float value)
Sets the element at the second row and second column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix23(float value)
Sets the element at the second row and third column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix24(float value)
Sets the element at the second row and fourth column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix30(float value)
Sets the element at the third row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix31(float value)
Sets the element at the third row and first column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix32(float value)
Sets the element at the third row and second column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix33(float value)
Sets the element at the third row and third column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix34(float value)
Sets the element at the third row and fourth column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix40(float value)
Sets the element at the fourth row and 0 (zero) column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix41(float value)
Sets the element at the fourth row and first column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix42(float value)
Sets the element at the fourth row and second column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix43(float value)
Sets the element at the fourth row and third column of this
Aspose.Imaging.ColorMatrix . |
void |
setMatrix44(float value)
Sets the element at the fourth row and fourth column of this
Aspose.Imaging.ColorMatrix . |
public static final int MATRIX_DIMENSION_ELEMENTS_COUNT
The number of elements in matrix dimension.
public static final int MATRIX_DIMENSIONS_COUNT
The number of matrix dimensions.
public static final int MATRIX_TOTAL_ELEMENTS_COUNT
The total number of elements in the matrix.
public ColorMatrix()
Initializes a new instance of the Aspose.Imaging.ColorMatrix
class.
public ColorMatrix(float[][] newColorMatrix)
Initializes a new instance of the Aspose.Imaging.ColorMatrix
class using the elements in the specified matrix newColorMatrix
.
newColorMatrix
- The values of the elements for the new Aspose.Imaging.ColorMatrix
.public float getMatrix00()
Gets the element at the 0 (zero) row and 0 column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix00(float value)
Sets the element at the 0 (zero) row and 0 column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the 0 row and 0 column of this Aspose.Imaging.ColorMatrix
.public float getMatrix01()
Gets the element at the 0 (zero) row and first column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix01(float value)
Sets the element at the 0 (zero) row and first column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the 0 row and first column of this Aspose.Imaging.ColorMatrix
.public float getMatrix02()
Gets the element at the 0 (zero) row and second column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix02(float value)
Sets the element at the 0 (zero) row and second column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the 0 row and second column of this Aspose.Imaging.ColorMatrix
.public float getMatrix03()
Gets the element at the 0 (zero) row and third column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix03(float value)
Sets the element at the 0 (zero) row and third column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the 0 row and third column of this Aspose.Imaging.ColorMatrix
.public float getMatrix04()
Gets the element at the 0 (zero) row and fourth column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix04(float value)
Sets the element at the 0 (zero) row and fourth column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the 0 row and fourth column of this Aspose.Imaging.ColorMatrix
.public float getMatrix10()
Gets the element at the first row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix10(float value)
Sets the element at the first row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the first row and 0 column of this Aspose.Imaging.ColorMatrix
.public float getMatrix11()
Gets the element at the first row and first column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix11(float value)
Sets the element at the first row and first column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the first row and first column of this Aspose.Imaging.ColorMatrix
.public float getMatrix12()
Gets the element at the first row and second column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix12(float value)
Sets the element at the first row and second column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the first row and second column of this Aspose.Imaging.ColorMatrix
.public float getMatrix13()
Gets the element at the first row and third column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix13(float value)
Sets the element at the first row and third column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the first row and third column of this Aspose.Imaging.ColorMatrix
.public float getMatrix14()
Gets the element at the first row and fourth column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix14(float value)
Sets the element at the first row and fourth column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the first row and fourth column of this Aspose.Imaging.ColorMatrix
.public float getMatrix20()
Gets the element at the second row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix20(float value)
Sets the element at the second row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the second row and 0 column of this Aspose.Imaging.ColorMatrix
.public float getMatrix21()
Gets the element at the second row and first column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix21(float value)
Sets the element at the second row and first column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the second row and first column of this Aspose.Imaging.ColorMatrix
.public float getMatrix22()
Gets the element at the second row and second column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix22(float value)
Sets the element at the second row and second column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the second row and second column of this Aspose.Imaging.ColorMatrix
.public float getMatrix23()
Gets the element at the second row and third column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix23(float value)
Sets the element at the second row and third column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the second row and third column of this Aspose.Imaging.ColorMatrix
.public float getMatrix24()
Gets the element at the second row and fourth column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix24(float value)
Sets the element at the second row and fourth column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the second row and fourth column of this Aspose.Imaging.ColorMatrix
.public float getMatrix30()
Gets the element at the third row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix30(float value)
Sets the element at the third row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the third row and 0 column of this Aspose.Imaging.ColorMatrix
.public float getMatrix31()
Gets the element at the third row and first column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix31(float value)
Sets the element at the third row and first column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the third row and first column of this Aspose.Imaging.ColorMatrix
.public float getMatrix32()
Gets the element at the third row and second column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix32(float value)
Sets the element at the third row and second column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the third row and second column of this Aspose.Imaging.ColorMatrix
.public float getMatrix33()
Gets the element at the third row and third column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix33(float value)
Sets the element at the third row and third column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the third row and third column of this Aspose.Imaging.ColorMatrix
.public float getMatrix34()
Gets the element at the third row and fourth column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix34(float value)
Sets the element at the third row and fourth column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the third row and fourth column of this Aspose.Imaging.ColorMatrix
.public float getMatrix40()
Gets the element at the fourth row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix40(float value)
Sets the element at the fourth row and 0 (zero) column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the fourth row and 0 column of this Aspose.Imaging.ColorMatrix
.public float getMatrix41()
Gets the element at the fourth row and first column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix41(float value)
Sets the element at the fourth row and first column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the fourth row and first column of this Aspose.Imaging.ColorMatrix
.public float getMatrix42()
Gets the element at the fourth row and second column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix42(float value)
Sets the element at the fourth row and second column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the fourth row and second column of this Aspose.Imaging.ColorMatrix
.public float getMatrix43()
Gets the element at the fourth row and third column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix43(float value)
Sets the element at the fourth row and third column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the fourth row and third column of this Aspose.Imaging.ColorMatrix
.public float getMatrix44()
Gets the element at the fourth row and fourth column of this Aspose.Imaging.ColorMatrix
.
Aspose.Imaging.ColorMatrix
.public void setMatrix44(float value)
Sets the element at the fourth row and fourth column of this Aspose.Imaging.ColorMatrix
.
value
- The element at the fourth row and fourth column of this Aspose.Imaging.ColorMatrix
.public float get_Item(int row, int column)
Gets the element at the specified row and column in the Aspose.Imaging.ColorMatrix
.
row
- The row number.column
- The column number.public void set_Item(int row, int column, float value)
Sets the element at the specified row and column in the Aspose.Imaging.ColorMatrix
.
row
- The row number.column
- The column number.value
- The valuepublic float[][] getMatrix()
Gets the matrix values.