Click to See Complete Forum and Search --> : trying to get the color of pixel on screen


phirestalker
February 20th, 2003, 04:40 AM
I need to get the color of a single pixel on the screen. I have searched the helpfiles, and the internet for days. I am hoping for something similar in functionality to the GetPixel method of the Bitmap Class. if there are no built in functions in C# or ways to get around to do it. I have no reservations of writing my own class to do this, but I don't know how to access the screen at all. Please help.

phirestalker
February 21st, 2003, 01:11 AM
figured it out

pareshgh
February 21st, 2003, 12:30 PM
could you tell us atleast how did u figure out. a sample would be good.

thanx
Paresh

phirestalker
February 21st, 2003, 02:16 PM
I don't like the way I have to do it, it takes up more memory that way. I have to take a picture of the whole screen as a bitmap. through the classes in the graphics.cs file. (not mine I found them on the net :) ) . I knew that I could do it something like that, but I wanted to just get the pixel. oh well.

pareshgh
February 21st, 2003, 02:35 PM
ya, that's nice idea though. working with screens' etc isn't it fun !!

but sometimes debuging becomes to much hard specially in drag drop actions.

Paresh