get pixel in .net

marvinklein

New member
Joined
Oct 9, 2003
Messages
4
how do i get the color of a specific pixel in a picturebox?
for bitmaps i jsut do this:

Dim b As Bitmap = PictureBox1.ImageDim pixelcolor As Color = b.GetPixel(x coord, y coord)

but what if i want the color of a point on a form? like when i have used a pen object to draw lines and i want to know if a point has been colored by the line?
 
Back
Top