marvinklein Posted October 9, 2003 Posted October 9, 2003 how do i get the color of a specific pixel in a picturebox? thanks. Quote
*Experts* mutant Posted October 9, 2003 *Experts* Posted October 9, 2003 Dim b As Bitmap = PictureBox1.Image Dim pixelcolor As Color = b.GetPixel(x coord, y coord) You simply put the image into a Bitmap object and then use the GetPixel method of the Bitmap object to get the color. In this example the variable pixelcolor will now contain the color of the pixel at the specified point. Quote
marvinklein Posted October 16, 2003 Author Posted October 16, 2003 ok. that works fine for images, 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.