Question How can I get color of pixel of an image?

mst_ab

New member
Joined
Sep 28, 2009
Messages
3
Programming Experience
3-5
hi any1;
i want ,user can open an image in form and by clicking a button color of specific pixel of image write to a textbox. how can i get color of pixel of an image?(very sorry for my bad English!)
 
Bitmap.GetPixel Method (System.Drawing) There's a small code sample there also. When you load the image into Picturebox (with SizeMode=Normal) you can use the MouseDown event and get the coordinate from e.X/e.Y.
 
Back
Top