返回一个 COLORREF 颜色组成成分的数组.
#Include <Color.au3>
_ColorGetCOLORREF($nColor)
$nColor | COLORREF 颜色值 (0x00BBGGRR) |
成功: | 返回颜色成分范围值(0-255)的数组: |
[0] 红颜色成分值 | |
[1] 绿颜色成分值 | |
[2] 蓝颜色成分值 | |
失败: | 设置 @error |
#include <Color.au3>
Local $nColor = 0x8090ff
Local $aColor = _ColorGetCOLORREF($nColor)
MsgBox(4096, "AutoIt", "Color=" & Hex($nColor) & @CRLF & " Red=" & Hex($aColor[0], 2) & " Blue=" & Hex($aColor[1], 2) & " Green=" & Hex($aColor[2], 2))