IColor::RGB Property

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Property RGB of interface IColor returns/sets Value of ULONG constructed from the three values of the RGB color. Each of the values should be 255 based and the value itself is constructed by using this macro:
#define RGB(r,g,b) ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16)))

Syntax

HRESULT get_RGB([out, retval]  ULONG*  nRGB);
HRESULT put_RGB([in]  ULONG  nRGB);

See Also

IColor