Results 1 to 4 of 4

Thread: How can I flip pics using Image object?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    23

    Post

    Szia,

    My problem is this: I want to flip pictures using the Image object. I know you can do it with PaintPicture with the pictureboxes, but pictureboxes don't have a Stretch option. The Stretch thing is very important to me, because I want to show whole pictures that are bigger than the screen resolution. Now I want to add some option to flip the image/picture, whatever. So does anyone know how I either make a picturebox to stretch the picture (is it possible??) or either make a picture flip (horz. and/or vert.) using an image object.

    Thank you,

    ------------------
    Baszom a szád szélét, Sanyikám!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    You can stretch the picture in a picturebox using the PaintPicture method (or the StrechBlt API function).

    You can use code simular to this:

    With Picture1
    .PaintPicture .Picture, 0, 0, .ScaleWidth, .ScaleHeight
    End With

    Just remember to set the AutoRedraw property to True.

    Good luck!

    ------------------
    Joacim Andersson
    [email protected]
    [email protected]
    www.YellowBlazer.com



  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    23

    Post

    Thank you very much, .

    Kain

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    23

    Post

    I will use the StretchBlt% API function, the PaintPicture method is a bit dodgy.

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