Results 1 to 4 of 4

Thread: [RESOLVED] How to auto resize image if it's too big?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    45

    Resolved [RESOLVED] How to auto resize image if it's too big?

    I have an upload image function. But i want it to resize the image if it's too big. Any ideas?
    Last edited by Spanjis; Feb 28th, 2006 at 07:39 AM.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: How to auto resize image if it's too big?

    Use Graphics.DrawImage() to draw it onto a smaller bitmap object and then just re-save it overwriting the original.

    This will be quite primitive resizing and will not be as good as say using a script in Photoshop.
    I don't live here any more.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    45

    Re: How to auto resize image if it's too big?

    Can I use it to change the image dimensions?

  4. #4
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: How to auto resize image if it's too big?

    check out my codebank sample for high-quality image resizing
    http://www.vbforums.com/showthread.php?t=383136

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