MrMajorThorburn Posted October 16, 2013 Share Posted October 16, 2013 does _DebugOut(Hex(PixelgetColor(10,10),6)) log the RGB values of the pixel or do I need to use $a = _ColorGetRGB(PixelgetColor(10,10)) _DebugOut($a[0] & $a[1] & $a[2]) I am asking as I am getting different values for the pixels comparing the information from first option and a screen capture viewed in an image editor. Link to comment Share on other sites More sharing options...
mrflibblehat Posted October 16, 2013 Share Posted October 16, 2013 Look at http://www.autoitscript.com/autoit3/docs/libfunctions/_ColorGetRGB.htm Also, You can convert the pixelgetcolour to hex using Hex() [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
MrMajorThorburn Posted October 16, 2013 Author Share Posted October 16, 2013 Ok. my test has shown that the process of using _ColorGetRGB results in the same Hex values for the RGB as is returned by PixelgetColor. My problem is relating the RGB values as seen in an image editor as apposed to the RGB values shown by the PixelGetColor. I have two files that demonstrate my problem. One is a text file containing the hex values retrieved via PixelGetColor and the other is the extract of the screencapture for the same Window location in a JPG file. I have uploaded these files to share with you so you can see my problem. SampleDmp.txt Link to comment Share on other sites More sharing options...
Malkey Posted October 16, 2013 Share Posted October 16, 2013 Instead of a jpg file try saving the screen capture as a bmp file which, I believe, has less pixel distortion. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now