Function Reference


_ColorGetCOLORREF

Returns the COLORREF color

#include <Color.au3>
_ColorGetCOLORREF ( $iColor )

Parameters

$iColor the COLORREF color to work with (0x00BBGGRR)

Return Value

Success: an array of values in the range 0-255:
[0] Red component color
[1] Green component color
[2] Blue component color
Failure: sets the @error flag to non-zero.

Remarks

@extended is preserved.

Related

_ColorSetCOLORREF

Example

#include <Color.au3>
#include <MsgBoxConstants.au3>

Local $iColor = 0x8090FF

Local $aColor = _ColorGetCOLORREF($iColor)
MsgBox($MB_SYSTEMMODAL, "", "Color=" & Hex($iColor) & @CRLF & @CRLF & "Red=" & Hex($aColor[0], 2) & " Green=" & Hex($aColor[1], 2) & " Blue=" & Hex($aColor[2], 2))