Class EmfPlusColorMatrixEffect

Class EmfPlusColorMatrixEffect

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Objects
Assembly: Aspose.Imaging.dll (25.7.0)

The ColorMatrixEffect object specifies an affine transform to be applied to an image.

public sealed class EmfPlusColorMatrixEffect : EmfPlusImageEffectsObjectType
    {
        public double[] RedMatrixEntries;
        public double[] GreenMatrixEntries;
        public double[] BlueMatrixEntries;
        public double[] AlphaMatrixEntries;
        public EmfPlusColorMatrixEffect(double[] redMatrixEntries, double[] greenMatrixEntries, double[] blueMatrixEntries, double[] alphaMatrixEntries)
        {
            RedMatrixEntries = redMatrixEntries;
            GreenMatrixEntries = greenMatrixEntries;
            BlueMatrixEntries = blueMatrixEntries;
            AlphaMatrixEntries = alphaMatrixEntries;
        }
    }

Inheritance

object MetaObject EmfPlusObject EmfPlusImageEffectsObjectType EmfPlusColorMatrixEffect

Inherited Members

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

Bitmap images are specified by EmfPlusBitmap objects (section 2.2.2.2). A color matrix effect isperformed by multiplying a color vector by a ColorMatrixEffect object. A 5x5 color matrix canperform a linear transform, including reflection, rotation, shearing, or scaling followed by a translation.

Constructors

EmfPlusColorMatrixEffect()

public EmfPlusColorMatrixEffect()
   {
   }

Properties

Matrix

Gets or sets the matrix.

public int[][] Matrix
{
    get
    {
    }
    set
    {
    }
}

Property Value

int [][]

MatrixN0

Gets or sets the Matrix[N][0] of the 5x5 color matrix. This row is used for transforms.

public int[] MatrixN0
   {
      get;
      set;
   }

Property Value

int []

Remarks

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.

MatrixN1

Gets or sets the Matrix[N][1] of the 5x5 color matrix. This row is used for transforms.

public int[] MatrixN1
{
    get;
    set;
}

Property Value

int []

Remarks

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.

MatrixN2

Gets or sets the Matrix[N][2] of the 5x5 color matrix. This row is used for transforms.

public int[] MatrixN2
{
    get;
    set;
}

Property Value

int []

Remarks

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.

MatrixN3

Gets or sets the Matrix[N][3] of the 5x5 color matrix. This row is used for transforms.

public int[] MatrixN3
{
    get { return this.MatrixN3; }
    set { this.MatrixN3 = value; }
}

Property Value

int []

Remarks

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.

MatrixN4

Gets or sets the Matrix[N][4] of the 5x5 color matrix. This row is used for color translations.

public int[] MatrixN4
{
    get { return this.MatrixN4; }
    set { this.MatrixN4 = value; }
}

Property Value

int []

Remarks

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.

 English