Results 1 to 4 of 4

Thread: load and resize image based picturebox

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,958

    load and resize image based picturebox

    how to load and resize/autofit image based the picturebox1?
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Hyperactive Member
    Join Date
    Feb 2015
    Posts
    330

    Re: load and resize image based picturebox

    Here is a simple demo which I just put together. Hope it helps!
    Attached Files Attached Files

  3. #3
    The Idiot
    Join Date
    Dec 2014
    Posts
    3,017

    Re: load and resize image based picturebox

    another "easy" way is to use SetStretchBltMode and StretchBlt
    will give u "halftone", its not the best but okish.
    if u want better interpolation, u can use GDI+ or WIA2

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,755

    Re: load and resize image based picturebox

    The Image control has a Stretch property

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