Packages

 

com.aspose.imaging.fileformats.emf.emfplus.objects

Classes

com.aspose.imaging.fileformats.emf.emfplus.objects

Class EmfPlusColorMatrixEffect

  • All Implemented Interfaces:
    Cloneable


    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.

    • Constructor Detail

      • EmfPlusColorMatrixEffect

        public EmfPlusColorMatrixEffect()
    • Method Detail

      • 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.

      • setMatrixN0

        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.

      • 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.

      • setMatrixN1

        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.

      • 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.

      • setMatrixN2

        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.

      • 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.

      • setMatrixN3

        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.

      • 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.

      • setMatrixN4

        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.

      • getMatrix

        public int[][] getMatrix()

        Gets or sets the matrix.

        Value: The matrix.
      • setMatrix

        public void setMatrix(int[][] value)

        Gets or sets the matrix.

        Value: The matrix.