Results 1 to 6 of 6

Thread: re-sizing pics in VB

  1. #1

    Thread Starter
    New Member Elite Wraith's Avatar
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    10

    re-sizing pics in VB

    hey does anybody know how to re-size pics (*.jpg) in VB, like throw a Active X or somthing.

    cheers

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Use the PaintPicture method provided by VB, or use teh StretchBlt api call.

  3. #3

    Thread Starter
    New Member Elite Wraith's Avatar
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    10
    and that'll let me re-size?

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Yes, load the picture in a PictureBox and then use the PaintPicture method. Or better still, use an image box to display the jpg picture and then set its Stretch property to "True". Now resize teh Image Box. The picture will automatically be adjusted according to the Image box.

  5. #5

    Thread Starter
    New Member Elite Wraith's Avatar
    Join Date
    Sep 2002
    Location
    Australia
    Posts
    10
    can we then save those change images

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    savepicture function

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