IColor::SetRGB Method

From Tracker Software PDF SDK
Jump to: navigation, search


Sets the RGB value of the current color.

Syntax

HRESULT SetRGB([in]  float  nR,
               [in]  float  nG,
               [in]  float  nB);

Parameters

nR
[in] Value of float containing the Red value of the color. Can vary between 0 and 1.
nG
[in] Value of float containing the Green value of the color. Can vary between 0 and 1.
nB
[in] Value of float containing the Blue value of the color. Can vary between 0 and 1.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IColor