Function Reference


_WinAPI_InvertColor

Inverts (negative) the specified color

#include <WinAPIGdi.au3>
_WinAPI_InvertColor ( $iColor )

Parameters

$iColor The color to be inverted. This color can be specified in RGB or BGR format.

Return Value

Returns the inverted color.

Example

#include <WinAPIGdi.au3>

Local $iColor = 0xAADDFF

$iColor = _WinAPI_InvertColor($iColor)
ConsoleWrite('0x' & Hex($iColor, 6) & @CRLF)
$iColor = _WinAPI_InvertColor($iColor)
ConsoleWrite('0x' & Hex($iColor, 6) & @CRLF)