Home All Groups Group Topic Archive Search About
Author
25 Jun 2006 5:31 AM
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?

Author
25 Jun 2006 10:34 PM
HKSHK
Bitmap.GetPixel Method (as the help said)

Regards,

HKSHK

Daniel N wrote:
Show quoteHide quote
> 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?
>
>
Author
26 Jun 2006 12:11 PM
Jay B. Harlow [MVP - Outlook]
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


Show quoteHide quote
"Daniel N" <saintdark_***@yahoo.com> wrote in message
news:gAmng.376$Ym7.0@fe12.lga...
| 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?
|
|