Class ColorMatrix
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)
定义一个包含 RGBA 空间坐标的 5 x 5 矩阵。Aspose.Imaging.ImageAttributes 类的多个方法通过使用颜色矩阵来调整图像颜色。此类不能被继承。
public sealed class ColorMatrix
继承
继承的成员
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
字段值
MatrixDimensionsCount
矩阵维度的数量。
public const int MatrixDimensionsCount = 5
字段值
MatrixTotalElementsCount
矩阵中元素的总数量。
public const int MatrixTotalElementsCount = 25
字段值
属性
Matrix00
获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和 0 列的元素。
public float Matrix00 { get; set; }
属性值
Matrix01
获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第一列的元素。
public float Matrix01 { get; set; }
属性值
Matrix02
获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第二列的元素。
public float Matrix02 { get; set; }
属性值
Matrix03
获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第三列的元素。
public float Matrix03 { get; set; }
属性值
Matrix04
获取或设置此 Aspose.Imaging.ColorMatrix 的 0(零)行和第四列的元素。
public float Matrix04 { get; set; }
属性值
Matrix10
获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和 0(零)列的元素。
public float Matrix10 { get; set; }
属性值
Matrix11
获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第一列的元素。
public float Matrix11 { get; set; }
属性值
Matrix12
获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第二列的元素。
public float Matrix12 { get; set; }
属性值
Matrix13
获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第三列的元素。
public float Matrix13 { get; set; }
属性值
Matrix14
获取或设置此 Aspose.Imaging.ColorMatrix 的第一行和第四列的元素。
public float Matrix14 { get; set; }
属性值
Matrix20
获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和 0(零)列的元素。
public float Matrix20 { get; set; }
属性值
Matrix21
获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第一列的元素。
public float Matrix21 { get; set; }
属性值
Matrix22
获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第二列的元素。
public float Matrix22 { get; set; }
属性值
Matrix23
获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第三列的元素。
public float Matrix23 { get; set; }
属性值
Matrix24
获取或设置此 Aspose.Imaging.ColorMatrix 的第二行和第四列的元素。
public float Matrix24 { get; set; }
属性值
Matrix30
获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和 0(零)列的元素。
public float Matrix30 { get; set; }
属性值
Matrix31
获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第一列的元素。
public float Matrix31 { get; set; }
属性值
Matrix32
获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第二列的元素。
public float Matrix32 { get; set; }
属性值
Matrix33
获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第三列的元素。
public float Matrix33 { get; set; }
属性值
Matrix34
获取或设置此 Aspose.Imaging.ColorMatrix 的第三行和第四列的元素。
public float Matrix34 { get; set; }
属性值
Matrix40
获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和 0(零)列的元素。
public float Matrix40 { get; set; }
属性值
Matrix41
获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第一列的元素。
public float Matrix41 { get; set; }
属性值
Matrix42
获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第二列的元素。
public float Matrix42 { get; set; }
属性值
Matrix43
获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第三列的元素。
public float Matrix43 { get; set; }
属性值
Matrix44
获取或设置此 Aspose.Imaging.ColorMatrix 的第四行和第四列的元素。
public float Matrix44 { get; set; }
属性值
this[int, int]
获取或设置 Aspose.Imaging.ColorMatrix 中指定行和列的元素。
public float this[int row, int column] { get; set; }
属性值
方法
GetMatrix()
获取矩阵值。
public float[][] GetMatrix()
返回
float[][]
矩阵值数组。