Sign in to follow this  
Followers 0
MrMajorThorburn

pixelgetcolor and RGB values

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

post-65884-0-24207900-1381945277_thumb.j

Share this post


Link to post
Share on other sites

Instead of a jpg file try saving the screen capture as a bmp file which, I believe, has less pixel distortion.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0