ColorMatrix 类

Summary: Defines a 5 x 5 matrix that contains the coordinates for the RGBA space. Several methods of the ImageAttributes class adjust image colors by using a color matrix. This class cannot be inherited.

Module: aspose.imaging

Full Name: aspose.imaging.ColorMatrix

Constructors

Name描述
ColorMatrix()初始化一个新的 ColorMatrix 类实例。
ColorMatrix(new_color_matrix)使用指定矩阵 newColorMatrix 中的元素初始化一个新的 ColorMatrix 类实例。

Properties

NameTypeAccess描述
MATRIX_DIMENSIONS_COUNT [static]intr矩阵维度的数量。
MATRIX_DIMENSION_ELEMENTS_COUNT [static]intr矩阵维度中元素的数量。
MATRIX_TOTAL_ELEMENTS_COUNT [static]intr矩阵中元素的总数。
matrix00floatr/w获取或设置此 ColorMatrix 的第 0(零)行第 0 列的元素。
matrix01floatr/w获取或设置此 ColorMatrix 的第 0(零)行第一列的元素。
matrix02floatr/w获取或设置此 ColorMatrix 的第 0(零)行第二列的元素。
matrix03floatr/w获取或设置此 ColorMatrix 的第 0(零)行第三列的元素。
matrix04floatr/w获取或设置此 ColorMatrix 的第 0(零)行和第四列的元素。
matrix10floatr/w获取或设置此 ColorMatrix 的第一行和第 0(零)列的元素。
matrix11floatr/w获取或设置此 ColorMatrix 的第一行和第一列的元素。
matrix12floatr/w获取或设置此 ColorMatrix 的第一行和第二列的元素。
matrix13floatr/w获取或设置此 ColorMatrix 的第一行和第三列的元素。
matrix14floatr/w获取或设置此 ColorMatrix 的第一行和第四列的元素。
matrix20floatr/w获取或设置此 ColorMatrix 的第二行和第 0(零)列的元素。
matrix21floatr/w获取或设置此 ColorMatrix 的第二行和第一列的元素。
matrix22floatr/w获取或设置此 ColorMatrix 的第二行和第二列的元素。
matrix23floatr/w获取或设置此 ColorMatrix 的第二行和第三列的元素。
matrix24floatr/w获取或设置此 ColorMatrix 的第二行和第四列的元素。
matrix30floatr/w获取或设置此 ColorMatrix 的第三行和第 0(零)列的元素。
matrix31floatr/w获取或设置此 ColorMatrix 的第三行和第一列的元素。
matrix32floatr/w获取或设置此 ColorMatrix 的第三行和第二列的元素。
matrix33floatr/w获取或设置此 ColorMatrix 的第三行和第三列的元素。
matrix34floatr/w获取或设置此 ColorMatrix 的第三行和第四列的元素。
matrix40floatr/w获取或设置此 ColorMatrix 的第四行和第 0(零)列的元素。
matrix41floatr/w获取或设置此 ColorMatrix 的第四行和第一列的元素。
matrix42floatr/w获取或设置此 ColorMatrix 的第四行和第二列的元素。
matrix43floatr/w获取或设置此 ColorMatrix 的第四行和第三列的元素。
matrix44floatr/w获取或设置此 ColorMatrix 的第四行和第四列的元素。

Methods

Name描述
get(row, column)获取 ColorMatrix 中指定行列的元素。
get_matrix()获取矩阵的值。
set(row, column, value)设置 ColorMatrix 中指定行列的元素。

Constructor: ColorMatrix()

 ColorMatrix() 

初始化一个新的 ColorMatrix 类实例。

Constructor: ColorMatrix(new_color_matrix)

 ColorMatrix(new_color_matrix) 

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

Parameters:

参数TypeDescription
new_color_matrixSystem.Single[]ColorMatrix 的元素值。

Method: get(row, column)

 get(row, column) 

获取 ColorMatrix 中指定行列的元素。

Parameters:

参数TypeDescription
int行号。
int列号。

Returns

TypeDescription
float指定行和列处的元素。

Method: get_matrix()

 get_matrix() 

获取矩阵的值。

Returns

TypeDescription
System.Single[]矩阵值数组。

Method: set(row, column, value)

 set(row, column, value) 

设置 ColorMatrix 中指定行列的元素。

Parameters:

参数TypeDescription
int行号。
int列号。
valuefloat指定行和列处的元素。