Picturebox -StretchImage - GetPixel
Good morning all
I may be asking fundamental Q. But still I am stuck. Please Help!
I have picturebox in windows form with stretchImage as sizemode property. I have getPixel code on MouseMove
r = 255 - myImage.GetPixel(e.X, e.Y).R
Image appears to be stretched for picturebox Height and width. but PictureBox1.Height is not always same as PictureBox1.image.Height.
So I do get Null exception in some areas on Mousemove.
Is it possible to get pixel value for the image when sizemode=stretchimage and image is stretched in the picturebox
Thanks