AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 静态 Public 属性 | 属性 | 所有成员列表
AnyCAD::Platform::ColorValue类 参考

Color with (R, G, B, A). 更多...

Public 成员函数

 ColorValue (float r, float g, float b, float a)
 
 ColorValue (float r, float g, float b)
 
 ColorValue (int r, int g, int b)
 
int ToRGBA ()
 

静态 Public 属性

static const ColorValueRED = gcnew ColorValue(1,0,0,1)
 
static const ColorValueGREEN = gcnew ColorValue(0,1,0,1)
 
static const ColorValueBLUE = gcnew ColorValue(0,0,1,1)
 
static const ColorValueWHITE = gcnew ColorValue(1,1,1,1)
 
static const ColorValueBLACK = gcnew ColorValue(0,0,0,1)
 

属性

float R [get, set]
 
float G [get, set]
 
float B [get, set]
 
float A [get, set]
 

详细描述

Color with (R, G, B, A).

作者
AnyCAD

构造及析构函数说明

AnyCAD::Platform::ColorValue::ColorValue ( float  r,
float  g,
float  b,
float  a 
)

Construct a ColorValue.

参数
rrange (0~1)
AnyCAD::Platform::ColorValue::ColorValue ( float  r,
float  g,
float  b 
)

Construct a ColorValue.

AnyCAD::Platform::ColorValue::ColorValue ( int  r,
int  g,
int  b 
)

Construct a ColorValue.

参数
rrange (0~256)

成员函数说明

int AnyCAD::Platform::ColorValue::ToRGBA ( )

Convert RGBA to integer.

返回
the integer.

属性说明

float AnyCAD::Platform::ColorValue::A
getset

Alpha.

float AnyCAD::Platform::ColorValue::B
getset

Blue.

float AnyCAD::Platform::ColorValue::G
getset

Green.

float AnyCAD::Platform::ColorValue::R
getset

Red.


该类的文档由以下文件生成: