Function Reference

_ColorGetRed

Returns the red component of a given color.

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

 

Parameters

$nColor The RGB color to work with (hexadecimal code).

 

Return Value

Success: Returns the component color in the range 0-255.
Failure: Returns -1.
@Error: 0 = No error.
1 = $nColor isn't a number.

 

Remarks

None.

 

Related

_ColorGetRed, _ColorGetBlue

 

Example

#include

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