BPSingleColorSettings Class Reference Library » Paint

#include <lib_paint.h>

Inheritance diagram for BPSingleColorSettings:

详细描述

Color settings.

公共成员函数

void  SetRGB (const 向量 &rgb, Float i)
void  GetRGB ( 向量 &rgb, Float &i)

私有成员函数

  BPSingleColorSettings ()
  ~BPSingleColorSettings ()

构造函数 & 析构函数文档编制

◆  BPSingleColorSettings()

BPSingleColorSettings () private

◆  ~BPSingleColorSettings()

~ BPSingleColorSettings () private

成员函数文档编制

◆  SetRGB()

void SetRGB ( const 向量 rgb ,
Float   i  
)

Sets the RGB color and intensity value for the color. The intensity value is internally multiplied against the RGB value.
An RGB value of (0.5,0.5,0.5) is Grey. If the RGB value is (1.0,1.0,1.0) and the intensity value is 0.5 then the resulting color is Grey (0.5,0.5,0.5).

参数
[in] rgb The RGB color.
[in] i The intensity value.

◆  GetRGB()

void GetRGB ( 向量 rgb ,
Float i  
)

Gets the RGB color and intensity value for the color. The intensity value is internally multiplied against the RGB value.
An RGB value of (0.5,0.5,0.5) is Grey. If the RGB value is (1.0,1.0,1.0) and the intensity value is 0.5 then the resulting color is Grey (0.5,0.5,0.5).

参数
[out] rgb The RGB color.
[out] i The intensity value.