Color of a Pixel in a image in a pictureBox
-
Hello how to retrieve the color of a pixel in a image inserted in a picturebox I know that : dim img1 as bitmap (img1.GetPixel(e.Location.X, e.Location.Y).R but im not able to use it within the Picturebox image
Regards Ramy
-
Hello how to retrieve the color of a pixel in a image inserted in a picturebox I know that : dim img1 as bitmap (img1.GetPixel(e.Location.X, e.Location.Y).R but im not able to use it within the Picturebox image
Regards Ramy
-
Get the reference of the image from the control, cast it to Bitmap and use the GetPixel method.
--- single minded; short sighted; long gone;
Guffa wrote:
Get the reference of the image from the control, cast it to Bitmap and use the GetPixel method.
get u give me an example plz
Regards Ramy
-
Guffa wrote:
Get the reference of the image from the control, cast it to Bitmap and use the GetPixel method.
get u give me an example plz
Regards Ramy
charchabil03 wrote:
get u give me an example plz
If you don't understand what I suggested, just say so. Then I can explain exactly what it is that you don't get. If you don't tell me anything about why you think that an example would help, I can't write an example that would demonstrate what it is that you have problems with. What I suggested is really simple, and I could write the single line of code that does it, but if you don't understand anything about what I suggested, what do you think that you would understand from the code?
--- single minded; short sighted; long gone;
-
Hello how to retrieve the color of a pixel in a image inserted in a picturebox I know that : dim img1 as bitmap (img1.GetPixel(e.Location.X, e.Location.Y).R but im not able to use it within the Picturebox image
Regards Ramy