public final class ColorMatrix extends Object
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.
Modifier and Type | Field and Description |
---|---|
static int |
MatrixDimensionElementsCount
The number of elements in matrix dimension.
|
static int |
MatrixDimensionsCount
The number of matrix dimensions.
|
static int |
MatrixTotalElementsCount
The total number of elements in the matrix.
|
Constructor and Description |
---|
ColorMatrix()
Initializes a new instance of the
ColorMatrix class. |
ColorMatrix(float[][] newColorMatrix)
Initializes a new instance of the
ColorMatrix class using the elements in the specified matrix newColorMatrix . |
Modifier and Type | Method and Description |
---|---|
float |
get_Item(int row,
int column)
Gets or sets the element at the specified row and column in the
ColorMatrix . |
float[][] |
getMatrix()
Gets the matrix values.
|
float |
getMatrix00()
Gets or sets the element at the 0 (zero) row and 0 column of this
ColorMatrix . |
float |
getMatrix01()
Gets or sets the element at the 0 (zero) row and first column of this
ColorMatrix . |
float |
getMatrix02()
Gets or sets the element at the 0 (zero) row and second column of this
ColorMatrix . |
float |
getMatrix03()
Gets or sets the element at the 0 (zero) row and third column of this
ColorMatrix . |
float |
getMatrix04()
Gets or sets the element at the 0 (zero) row and fourth column of this
ColorMatrix . |
float |
getMatrix10()
Gets or sets the element at the first row and 0 (zero) column of this
ColorMatrix . |
float |
getMatrix11()
Gets or sets the element at the first row and first column of this
ColorMatrix . |
float |
getMatrix12()
Gets or sets the element at the first row and second column of this
ColorMatrix . |
float |
getMatrix13()
Gets or sets the element at the first row and third column of this
ColorMatrix . |
float |
getMatrix14()
Gets or sets the element at the first row and fourth column of this
ColorMatrix . |
float |
getMatrix20()
Gets or sets the element at the second row and 0 (zero) column of this
ColorMatrix . |
float |
getMatrix21()
Gets or sets the element at the second row and first column of this
ColorMatrix . |
float |
getMatrix22()
Gets or sets the element at the second row and second column of this
ColorMatrix . |
float |
getMatrix23()
Gets or sets the element at the second row and third column of this
ColorMatrix . |
float |
getMatrix24()
Gets or sets the element at the second row and fourth column of this
ColorMatrix . |
float |
getMatrix30()
Gets or sets the element at the third row and 0 (zero) column of this
ColorMatrix . |
float |
getMatrix31()
Gets or sets the element at the third row and first column of this
ColorMatrix . |
float |
getMatrix32()
Gets or sets the element at the third row and second column of this
ColorMatrix . |
float |
getMatrix33()
Gets or sets the element at the third row and third column of this
ColorMatrix . |
float |
getMatrix34()
Gets or sets the element at the third row and fourth column of this
ColorMatrix . |
float |
getMatrix40()
Gets or sets the element at the fourth row and 0 (zero) column of this
ColorMatrix . |
float |
getMatrix41()
Gets or sets the element at the fourth row and first column of this
ColorMatrix . |
float |
getMatrix42()
Gets or sets the element at the fourth row and second column of this
ColorMatrix . |
float |
getMatrix43()
Gets or sets the element at the fourth row and third column of this
ColorMatrix . |
float |
getMatrix44()
Gets or sets the element at the fourth row and fourth column of this
ColorMatrix . |
void |
set_Item(int row,
int column,
float value)
Gets or sets the element at the specified row and column in the
ColorMatrix . |
void |
setMatrix00(float value)
Gets or sets the element at the 0 (zero) row and 0 column of this
ColorMatrix . |
void |
setMatrix01(float value)
Gets or sets the element at the 0 (zero) row and first column of this
ColorMatrix . |
void |
setMatrix02(float value)
Gets or sets the element at the 0 (zero) row and second column of this
ColorMatrix . |
void |
setMatrix03(float value)
Gets or sets the element at the 0 (zero) row and third column of this
ColorMatrix . |
void |
setMatrix04(float value)
Gets or sets the element at the 0 (zero) row and fourth column of this
ColorMatrix . |
void |
setMatrix10(float value)
Gets or sets the element at the first row and 0 (zero) column of this
ColorMatrix . |
void |
setMatrix11(float value)
Gets or sets the element at the first row and first column of this
ColorMatrix . |
void |
setMatrix12(float value)
Gets or sets the element at the first row and second column of this
ColorMatrix . |
void |
setMatrix13(float value)
Gets or sets the element at the first row and third column of this
ColorMatrix . |
void |
setMatrix14(float value)
Gets or sets the element at the first row and fourth column of this
ColorMatrix . |
void |
setMatrix20(float value)
Gets or sets the element at the second row and 0 (zero) column of this
ColorMatrix . |
void |
setMatrix21(float value)
Gets or sets the element at the second row and first column of this
ColorMatrix . |
void |
setMatrix22(float value)
Gets or sets the element at the second row and second column of this
ColorMatrix . |
void |
setMatrix23(float value)
Gets or sets the element at the second row and third column of this
ColorMatrix . |
void |
setMatrix24(float value)
Gets or sets the element at the second row and fourth column of this
ColorMatrix . |
void |
setMatrix30(float value)
Gets or sets the element at the third row and 0 (zero) column of this
ColorMatrix . |
void |
setMatrix31(float value)
Gets or sets the element at the third row and first column of this
ColorMatrix . |
void |
setMatrix32(float value)
Gets or sets the element at the third row and second column of this
ColorMatrix . |
void |
setMatrix33(float value)
Gets or sets the element at the third row and third column of this
ColorMatrix . |
void |
setMatrix34(float value)
Gets or sets the element at the third row and fourth column of this
ColorMatrix . |
void |
setMatrix40(float value)
Gets or sets the element at the fourth row and 0 (zero) column of this
ColorMatrix . |
void |
setMatrix41(float value)
Gets or sets the element at the fourth row and first column of this
ColorMatrix . |
void |
setMatrix42(float value)
Gets or sets the element at the fourth row and second column of this
ColorMatrix . |
void |
setMatrix43(float value)
Gets or sets the element at the fourth row and third column of this
ColorMatrix . |
void |
setMatrix44(float value)
Gets or sets the element at the fourth row and fourth column of this
ColorMatrix . |
public static final int MatrixDimensionElementsCount
The number of elements in matrix dimension.
public static final int MatrixDimensionsCount
The number of matrix dimensions.
public static final int MatrixTotalElementsCount
The total number of elements in the matrix.
public ColorMatrix()
Initializes a new instance of the ColorMatrix
class.
public ColorMatrix(float[][] newColorMatrix)
Initializes a new instance of the ColorMatrix
class using the elements in the specified matrix newColorMatrix
.
newColorMatrix
- The values of the elements for the new ColorMatrix
.public final float getMatrix00()
Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix00(float value)
Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix01()
Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix01(float value)
Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix02()
Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix02(float value)
Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix03()
Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix03(float value)
Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix04()
Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix04(float value)
Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix10()
Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix10(float value)
Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix11()
Gets or sets the element at the first row and first column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix11(float value)
Gets or sets the element at the first row and first column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix12()
Gets or sets the element at the first row and second column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix12(float value)
Gets or sets the element at the first row and second column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix13()
Gets or sets the element at the first row and third column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix13(float value)
Gets or sets the element at the first row and third column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix14()
Gets or sets the element at the first row and fourth column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix14(float value)
Gets or sets the element at the first row and fourth column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix20()
Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix20(float value)
Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix21()
Gets or sets the element at the second row and first column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix21(float value)
Gets or sets the element at the second row and first column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix22()
Gets or sets the element at the second row and second column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix22(float value)
Gets or sets the element at the second row and second column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix23()
Gets or sets the element at the second row and third column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix23(float value)
Gets or sets the element at the second row and third column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix24()
Gets or sets the element at the second row and fourth column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix24(float value)
Gets or sets the element at the second row and fourth column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix30()
Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix30(float value)
Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix31()
Gets or sets the element at the third row and first column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix31(float value)
Gets or sets the element at the third row and first column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix32()
Gets or sets the element at the third row and second column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix32(float value)
Gets or sets the element at the third row and second column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix33()
Gets or sets the element at the third row and third column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix33(float value)
Gets or sets the element at the third row and third column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix34()
Gets or sets the element at the third row and fourth column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix34(float value)
Gets or sets the element at the third row and fourth column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix40()
Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix40(float value)
Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix41()
Gets or sets the element at the fourth row and first column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix41(float value)
Gets or sets the element at the fourth row and first column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix42()
Gets or sets the element at the fourth row and second column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix42(float value)
Gets or sets the element at the fourth row and second column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix43()
Gets or sets the element at the fourth row and third column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix43(float value)
Gets or sets the element at the fourth row and third column of this ColorMatrix
.
ColorMatrix
.public final float getMatrix44()
Gets or sets the element at the fourth row and fourth column of this ColorMatrix
.
ColorMatrix
.public final void setMatrix44(float value)
Gets or sets the element at the fourth row and fourth column of this ColorMatrix
.
ColorMatrix
.public final float get_Item(int row, int column)
Gets or sets the element at the specified row and column in the ColorMatrix
.
row
- The row number.column
- The column number.public final void set_Item(int row, int column, float value)
Gets or sets the element at the specified row and column in the ColorMatrix
.
row
- The row number.column
- The column number.value
- The element at the specified row and column.public final float[][] getMatrix()
Gets the matrix values.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.