AutoHotkey Community

It is currently May 27th, 2012, 6:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: December 6th, 2010, 10:29 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
I am using the Gdip_GetPixel(pBitmap, x, y) function which should return the ARGB value of the pixel. I am trying to figure out how to decode the return so I can put it into a hex color format.

My return is 4294967295 for white and hex white is 0xFFFFFF. Can someone explain how I can manipulate that return to get the hex color?

At first I was so confused I thought it was returning an address but after some testing I found it wasn't. I can't find anything online, all I find is ARGB in hex and in binary but this appears to be neither.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2010, 10:37 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
http://www.autohotkey.com/forum/viewtopic.php?t=45543

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2010, 10:42 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
What the crap? There must be something wrong with me, I searched and searched and couldn't find anything and here is a post with the exact same problem as me. Guess I didn't have the right terminology down.

Thanks a lot.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: hd0202 and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group