Function Reference


_ColorGetRed

Returns the red component of a given color

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

Parameters

$iColor The RGB color to work with (0x00RRGGBB).

Return Value

Returns the component color in the range 0-255.

Related

_ColorGetBlue, _ColorGetGreen, _ColorGetRGB

Example

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

Local $iRedColor = _ColorGetRed(0x8080ff)
MsgBox($MB_SYSTEMMODAL, "AutoIt", $iRedColor)