|
-
Dec 22nd, 2003, 04:44 AM
#1
Thread Starter
New Member
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
Last edited by ragha_cv; Dec 22nd, 2003 at 04:48 AM.
-
Dec 22nd, 2003, 01:57 PM
#2
Thread Starter
New Member
it got solved. I could stretch the image for picturebox height and width on Zoomin/out.
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|