DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > Model > Entities > Appearence > IColor Go to DGKC docs Search Documentation


IColor Interface

Get
Set

The IColor interface gives access to components of the color.

See also Interface List


HRESULT Get( float* red, float* green, float* blue, float* alpha)

Parameters

red, green, blue, alpha - [out] the returned components of the color

Remarks:

The methods returns components of the color. All values are in range 0 to 1.0. 1.0 value of alpha corresponds to totally opaque color


HRESULT Set( float red, float green, float blue, float alpha)

Parameters

red, green, blue, alpha - [in] new components of the color

Returns

S_OK in case of success.

DISP_E_PARAMNOTOPTIONAL if any of the parameters is out of the valid range.

Remarks:

All values must be in range 0 to 1.0. 1.0 value of alpha corresponds to totally opaque color.