Class ColorMatrix

Class ColorMatrix

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)

定义一个包含 RGBA 空间坐标的 5 x 5 矩阵。Aspose.Imaging.ImageAttributes 类的多个方法通过使用颜色矩阵来调整图像颜色。此类不能被继承。

public sealed class ColorMatrix

继承

objectColorMatrix

继承的成员

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

构造函数

ColorMatrix()

初始化 Aspose.Imaging.ColorMatrix 类的新实例。

public ColorMatrix()

ColorMatrix(float[][])

使用指定矩阵 newColorMatrix 中的元素初始化 Aspose.Imaging.ColorMatrix 类的新实例。

public ColorMatrix(float[][] newColorMatrix)

参数

newColorMatrix float[][]

新 Aspose.Imaging.ColorMatrix 的元素值。

字段

MatrixDimensionElementsCount

矩阵维度中的元素数量。

public const int MatrixDimensionElementsCount = 5

字段值

int

MatrixDimensionsCount

矩阵维度的数量。

public const int MatrixDimensionsCount = 5

字段值

int

MatrixTotalElementsCount

矩阵中元素的总数量。

public const int MatrixTotalElementsCount = 25

字段值

int

属性

Matrix00

获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和 0 列的元素。

public float Matrix00 { get; set; }

属性值

float

Matrix01

获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第一列的元素。

public float Matrix01 { get; set; }

属性值

float

Matrix02

获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第二列的元素。

public float Matrix02 { get; set; }

属性值

float

Matrix03

获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第三列的元素。

public float Matrix03 { get; set; }

属性值

float

Matrix04

获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第四列的元素。

public float Matrix04 { get; set; }

属性值

float

Matrix10

获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和 0(零)列的元素。

public float Matrix10 { get; set; }

属性值

float

Matrix11

获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第一列的元素。

public float Matrix11 { get; set; }

属性值

float

Matrix12

获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第二列的元素。

public float Matrix12 { get; set; }

属性值

float

Matrix13

获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第三列的元素。

public float Matrix13 { get; set; }

属性值

float

Matrix14

获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第四列的元素。

public float Matrix14 { get; set; }

属性值

float

Matrix20

获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和 0(零)列的元素。

public float Matrix20 { get; set; }

属性值

float

Matrix21

获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第一列的元素。

public float Matrix21 { get; set; }

属性值

float

Matrix22

获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第二列的元素。

public float Matrix22 { get; set; }

属性值

float

Matrix23

获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第三列的元素。

public float Matrix23 { get; set; }

属性值

float

Matrix24

获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第四列的元素。

public float Matrix24 { get; set; }

属性值

float

Matrix30

获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和 0(零)列的元素。

public float Matrix30 { get; set; }

属性值

float

Matrix31

获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第一列的元素。

public float Matrix31 { get; set; }

属性值

float

Matrix32

获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第二列的元素。

public float Matrix32 { get; set; }

属性值

float

Matrix33

获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第三列的元素。

public float Matrix33 { get; set; }

属性值

float

Matrix34

获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第四列的元素。

public float Matrix34 { get; set; }

属性值

float

Matrix40

获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和 0(零)列的元素。

public float Matrix40 { get; set; }

属性值

float

Matrix41

获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第一列的元素。

public float Matrix41 { get; set; }

属性值

float

Matrix42

获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第二列的元素。

public float Matrix42 { get; set; }

属性值

float

Matrix43

获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第三列的元素。

public float Matrix43 { get; set; }

属性值

float

Matrix44

获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第四列的元素。

public float Matrix44 { get; set; }

属性值

float

this[int, int]

获取或设置 Aspose.Imaging.ColorMatrix 中指定行和列的元素。

public float this[int row, int column] { get; set; }

属性值

float

方法

GetMatrix()

获取矩阵值。

public float[][] GetMatrix()

返回

float[][]

矩阵值数组。

 中文