导航:  GdiPlus Classes > Structures >

ColorMatrix

上一页返回章节概述下一页

The ColorMatrix structure contains a 55 matrix of real numbers. Several of the ImageAttributes functions adjust image colors by using a color matrix.

 

C++ Syntax

 

typedef struct {

REAL爉[5][5];

} ColorMatrix;

 

FreeBASIC 语法

 

TYPE ColorMatrix

m(0 to 5-1, 0 to 5-1) AS REAL

END TYPE

 

成员

 

m

 

55 array of real numbers.

 

备注

 

A 55 color matrix is a homogeneous matrix for a 4-space transformation. The element in the fifth row and fifth column of a 55 homogeneous matrix must be 1, and all of the other elements in the fifth column must be 0. Color matrices are used to transform color vectors. The first four components of a color vector hold the red, green, blue, and alpha components (in that order) of a color. The fifth component of a color vector is always 1.