转换 BGR 颜色为 RGB 颜色,或反之.
#Include <WinAPIEx.au3>
_WinAPI_SwitchColor ( $iColor )
$iColor | 要转换的颜色. |
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Color = 0xAADDFF
$Color = _WinAPI_SwitchColor($Color)
ConsoleWrite('0x' & Hex($Color, 6) & @CR)
$Color = _WinAPI_SwitchColor($Color)
ConsoleWrite('0x' & Hex($Color, 6) & @CR)