Class ColorMatrix
名称: Aspose.Imaging 收藏: Aspose.Imaging.dll (25.4.0)
定义一个 5 x 5 矩阵,包含 RGBA 空间的坐标. 多种方法的 Aspose.Imaging.ImageAttributes 类调整图像颜色使用颜色矩阵. 这个类不能继承。
public sealed class ColorMatrix
Inheritance
继承人
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
ColorMatrix()
启动了 Aspose.Imaging.ColorMatrix 类的新例子。
public ColorMatrix()
ColorMatrix(航海[][])
启动 Aspose.Imaging.ColorMatrix 类的新例子,使用指定矩阵中的元素 newColorMatrix'.
public ColorMatrix(float[][] newColorMatrix)
Parameters
newColorMatrix
float
[ ]
新 Aspose.Imaging.ColorMatrix 的元素的值。
Fields
MatrixDimensionElementsCount
在矩阵尺寸中的元素数量。
public const int MatrixDimensionElementsCount = 5
领域价值
MatrixDimensionsCount
数数数数数数数数
public const int MatrixDimensionsCount = 5
领域价值
MatrixTotalElementsCount
在矩阵中的元素的总数。
public const int MatrixTotalElementsCount = 25
领域价值
Properties
Matrix00
获取或将元素置于 0 (零) 行和 0 列的这个 Aspose.Imaging.ColorMatrix。
public float Matrix00 { get; set; }
财产价值
Matrix01
接收或设置元素在 0 (零) 行和这个 Aspose.Imaging.ColorMatrix 的第一列。
public float Matrix01 { get; set; }
财产价值
Matrix02
接收或设置元素在 0 (零) 行和这个 Aspose.Imaging.ColorMatrix 的第二列。
public float Matrix02 { get; set; }
财产价值
Matrix03
获取或设置元素在 0 (零) 行和第三列的这个 Aspose.Imaging.ColorMatrix。
public float Matrix03 { get; set; }
财产价值
Matrix04
接收或设置元素在 0 (零) 行和这个 Aspose.Imaging.ColorMatrix 的第四列。
public float Matrix04 { get; set; }
财产价值
Matrix10
获取或设置该元素在第一个行和 0 (零) 列的这个 Aspose.Imaging.ColorMatrix。
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
获取或设置该元素在第二行和 0 (零) 列的这个 Aspose.Imaging.ColorMatrix。
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
获取或设置该元素在第三行和 0 (零) 列的这个 Aspose.Imaging.ColorMatrix。
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
获取或设置该元素在第四行和0(零)列的这个 Aspose.Imaging.ColorMatrix。
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; }
财产价值
这个[int , int , int]
在 Aspose.Imaging.ColorMatrix 中,在指定的行和列中获取或设置元素。
public float this[int row, int column] { get; set; }
财产价值
Methods
GetMatrix()
接收矩阵值。
public float[][] GetMatrix()
Returns
float [ ]
马特里克斯的值。