Get Pixel

  • Thread starter Thread starter Daniel N
  • Start date Start date
D

Daniel N

Dim Color1 As Color = ???????????????.getpixel(680, 562)

If I wanted to find the color of a point on the screen what would I put
there?
 
Daniel,
As HKSHK suggests you can use Bitmap.GetPixel to get the color of an
individual pixel on a bitmap.

You can use Graphics.CopyFromScreen to get a bitmap that contains the colors
of pixels on the screen.

http://msdn2.microsoft.com/en-us/library/system.drawing.graphics.copyfromscreen.aspx

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Dim Color1 As Color = ???????????????.getpixel(680, 562)
|
| If I wanted to find the color of a point on the screen what would I put
| there?
|
|
 
Back
Top