IColor::GetRGB Method

From PDF XChange PDF SDK
Jump to: navigation, search


Gets the RGB value of the current color.

Syntax

HRESULT GetRGB([out]  float*  nR,
               [out]  float*  nG,
               [out]  float*  nB);

Parameters

nR
[out] Pointer to float containing the Red value of the color. Can vary between 0 and 1.
nG
[out] Pointer to float containing the Green value of the color. Can vary between 0 and 1.
nB
[out] Pointer to 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