Results 1 to 2 of 2

Thread: Picturebox -StretchImage - GetPixel

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    7

    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.

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    7
    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
  •  



Click Here to Expand Forum to Full Width