Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get RGB value of a location on a picture box

Status
Not open for further replies.

sony2000

Programmer
Dec 7, 2003
34
0
0
HK
Hi,

Does any expert know how to get a Color RGB value of a
single pixel location on a picturebox control in which
an image is shown? Any method name to suggest?

Thanks for your kind attention,
Raymond
 
Code:
dim c as color
Dim bmp As Bitmap = PictureBox1.Image.Clone
c = bmp.GetPixel(1, 1)

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top