|
-
Sep 7th, 2011, 11:40 PM
#11
Thread Starter
Junior Member
Re: How can I find the 32 bit number of a color?
 Originally Posted by Edgemeal
Couldn't you just get the pixel under the mouse pointer, maybe something like...
Code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Using bmp As New Bitmap(1, 1)
Using g As Graphics = Graphics.FromImage(bmp)
g.CopyFromScreen(MousePosition, Point.Empty, bmp.Size)
Dim c As Color = bmp.GetPixel(0, 0)
Debug.WriteLine(c)
End Using
End Using
End Sub
I don't see where it says the color tho =/
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
|