IColor::GetGray Method

From PDF XChange PDF SDK
Revision as of 02:12, 16 March 2017 by Palamar (Talk | contribs)

Jump to: navigation, search


Gets the shade of gray value of the current color. The value can be between 0 (black) and 1 (white).

Syntax

HRESULT GetGray([out]  float*  nVal);

Parameters

nVal
[out] Pointer to float.

Return Value

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

See Also

IColor