Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

decimal to hex to R,G,B

$
0
0
get the R, G, and B values as decimal values (0-255)

#include <Color.au3>
$i=200
$j=200
$nColor = "0x00"&Hex(PixelGetColor($i,$j),6)
$Blue = _ColorGetBlue($nColor)
$Green = _ColorGetGreen($nColor)
$Red = _ColorGetRed($nColor)
MsgBox(0, "pixel data", "x: "&$i&" y: "&$j&" R: "&$Red&" G: "&$Green&" B: "&$Blue&" hex: "&$nColor);debug


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>