|
-
Sep 7th, 2011, 11:08 PM
#9
Re: How can I find the 32 bit number of a color?
1. Use the Screen class to get the size of the desktop on the primary screen.
2. Create a Bitmap of that size.
3. Create a Graphics object from the Bitmap.
4. Call CopyFromScreen to copy the desktop to the Bitmap.
5. Use the Cursor class to get the current mouse pointer location.
6. Call GetPixel on the Bitmap to get the Color at that location.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|