CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Posts
    21

    resize a picture

    can anybody tell me how to make an image resize to a picture box rather than the other way round, as is normally used. It's a bitmap by the way.


  2. #2
    Join Date
    Oct 1999
    Location
    Holland
    Posts
    34

    Re: resize a picture

    The easy way to do this is to use a image instead of a picturebox and set the stretch property to true. If you want to use a picturebox, you'll have to dig into the windows API's. Hope it helped.


  3. #3
    Join Date
    Jan 2000
    Location
    Yellowknifw, NT
    Posts
    5

    Re: resize a picture

    The fastest way to do this would be to have a second picture box hidden and use the paintpicture method (Check the help file) you can specify the size of the destiantion window using this method. Warning taking a large file and shrinking it down small can give you some weird effects of the image is to small.

    Hope this helps

    Richard Barnes
    Lead Design Scientist
    Coynet International/Public Access Technologies

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

Featured