EmfPlusColorMatrixEffect
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusImageEffectsObjectType
public final class EmfPlusColorMatrixEffect extends EmfPlusImageEffectsObjectType
The ColorMatrixEffect object specifies an affine transform to be applied to an image.
Bitmap images are specified by EmfPlusBitmap objects (section 2.2.2.2). A color matrix effect is performed by multiplying a color vector by a ColorMatrixEffect object. A 5x5 color matrix can perform a linear transform, including reflection, rotation, shearing, or scaling followed by a translation.
Constructors
Constructor | Description |
---|---|
EmfPlusColorMatrixEffect() |
Methods
Method | Description |
---|---|
getMatrixN0() | Gets or sets the Matrix[N][0] of the 5x5 color matrix. |
setMatrixN0(int[] value) | Gets or sets the Matrix[N][0] of the 5x5 color matrix. |
getMatrixN1() | Gets or sets the Matrix[N][1] of the 5x5 color matrix. |
setMatrixN1(int[] value) | Gets or sets the Matrix[N][1] of the 5x5 color matrix. |
getMatrixN2() | Gets or sets the Matrix[N][2] of the 5x5 color matrix. |
setMatrixN2(int[] value) | Gets or sets the Matrix[N][2] of the 5x5 color matrix. |
getMatrixN3() | Gets or sets the Matrix[N][3] of the 5x5 color matrix. |
setMatrixN3(int[] value) | Gets or sets the Matrix[N][3] of the 5x5 color matrix. |
getMatrixN4() | Gets or sets the Matrix[N][4] of the 5x5 color matrix. |
setMatrixN4(int[] value) | Gets or sets the Matrix[N][4] of the 5x5 color matrix. |
getMatrix() | Gets or sets the matrix. |
setMatrix(int[][] value) | Gets or sets the matrix. |
EmfPlusColorMatrixEffect()
public EmfPlusColorMatrixEffect()
getMatrixN0()
public int[] getMatrixN0()
Gets or sets the Matrix[N][0] of the 5x5 color matrix. This row is used for transforms.
Matrix_0_0 (4 bytes): Matrix[0][0], which is the factor for the color red. Matrix_1_0 (4 bytes): Matrix[1][0]. Matrix_2_0 (4 bytes): Matrix[2][0]. Matrix_3_0 (4 bytes): Matrix[3][0]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Returns: int[]
setMatrixN0(int[] value)
public void setMatrixN0(int[] value)
Gets or sets the Matrix[N][0] of the 5x5 color matrix. This row is used for transforms.
Matrix_0_0 (4 bytes): Matrix[0][0], which is the factor for the color red. Matrix_1_0 (4 bytes): Matrix[1][0]. Matrix_2_0 (4 bytes): Matrix[2][0]. Matrix_3_0 (4 bytes): Matrix[3][0]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] |
getMatrixN1()
public int[] getMatrixN1()
Gets or sets the Matrix[N][1] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_1 (4 bytes): Matrix[0][1]. Matrix_1_1 (4 bytes): Matrix[1][1], which is the factor for the color green. Matrix_2_1 (4 bytes): Matrix[2][1]. Matrix_3_1 (4 bytes): Matrix[3][1]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Returns: int[]
setMatrixN1(int[] value)
public void setMatrixN1(int[] value)
Gets or sets the Matrix[N][1] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_1 (4 bytes): Matrix[0][1]. Matrix_1_1 (4 bytes): Matrix[1][1], which is the factor for the color green. Matrix_2_1 (4 bytes): Matrix[2][1]. Matrix_3_1 (4 bytes): Matrix[3][1]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] |
getMatrixN2()
public int[] getMatrixN2()
Gets or sets the Matrix[N][2] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_2 (4 bytes): Matrix[0][2]. Matrix_1_2 (4 bytes): Matrix[1][2]. Matrix_2_2 (4 bytes): Matrix[2][2], which is the factor for the color blue. Matrix_3_1 (4 bytes): Matrix[3][1]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Returns: int[]
setMatrixN2(int[] value)
public void setMatrixN2(int[] value)
Gets or sets the Matrix[N][2] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_2 (4 bytes): Matrix[0][2]. Matrix_1_2 (4 bytes): Matrix[1][2]. Matrix_2_2 (4 bytes): Matrix[2][2], which is the factor for the color blue. Matrix_3_1 (4 bytes): Matrix[3][1]. Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] |
getMatrixN3()
public int[] getMatrixN3()
Gets or sets the Matrix[N][3] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_3 (4 bytes): Matrix[0][3]. Matrix_1_3 (4 bytes): Matrix[1][3]. Matrix_2_3 (4 bytes): Matrix[2][3]. Matrix_3_3 (4 bytes): Matrix[3][3], which is the factor for the alpha (transparency) Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Returns: int[]
setMatrixN3(int[] value)
public void setMatrixN3(int[] value)
Gets or sets the Matrix[N][3] of the 5x5 color matrix. This row is used for transforms.
Value: The matrix n1.
Matrix_0_3 (4 bytes): Matrix[0][3]. Matrix_1_3 (4 bytes): Matrix[1][3]. Matrix_2_3 (4 bytes): Matrix[2][3]. Matrix_3_3 (4 bytes): Matrix[3][3], which is the factor for the alpha (transparency) Matrix_4_0 (4 bytes): Matrix[4][0]. This value MUST be 0.0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] |
getMatrixN4()
public int[] getMatrixN4()
Gets or sets the Matrix[N][4] of the 5x5 color matrix. This row is used for color translations.
Value: The matrix n1.
Matrix_0_4 (4 bytes): Matrix[0][4]. Matrix_1_4 (4 bytes): Matrix[1][4]. Matrix_2_4 (4 bytes): Matrix[2][4]. Matrix_3_4 (4 bytes): Matrix[3][4]. Matrix_4_4 (4 bytes): Matrix[4][4]. This value SHOULD be 1.0.
Returns: int[]
setMatrixN4(int[] value)
public void setMatrixN4(int[] value)
Gets or sets the Matrix[N][4] of the 5x5 color matrix. This row is used for color translations.
Value: The matrix n1.
Matrix_0_4 (4 bytes): Matrix[0][4]. Matrix_1_4 (4 bytes): Matrix[1][4]. Matrix_2_4 (4 bytes): Matrix[2][4]. Matrix_3_4 (4 bytes): Matrix[3][4]. Matrix_4_4 (4 bytes): Matrix[4][4]. This value SHOULD be 1.0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[] |
getMatrix()
public int[][] getMatrix()
Gets or sets the matrix.
Value: The matrix.
Returns: int[][]
setMatrix(int[][] value)
public void setMatrix(int[][] value)
Gets or sets the matrix.
Value: The matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int[][] |