Results 1 to 5 of 5

Thread: Rotate picture

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202

    Rotate picture

    Hail,

    Can I use an API call to rotate a picture from a picture box (Need to make pic face north, NE, E, SE, S, SW, W, NW). Obviously I could save the pic in the different positions, but before I do that, I'd like to know if I can do it this way...

    Phailak

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I can tell you a way to flip pictures horizontally or vertically. You can use the PaintPicture Method of VB or BitBlt/StretchBlt api call for this purpose.
    You need to use two Pictureboxes for this purpose. One which will contain the original picture, and the other wich will contain the flipped picture. Keep both the picturesboxes of same size and use PaintPicture to copy in a reverse order.
    Last edited by amitabh; Aug 24th, 2001 at 01:33 PM.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202
    Hail,

    Thanx, but I need to rotate so I guess I'll have to do it manually (8 pics per character)

    Phailak

  4. #4
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    There is a program that does this. I had it, but I can't find it. They used BitBlt and it came with a game called DXtanks. I got it from around here somewhere...
    <removed by admin>

  5. #5
    New Member
    Join Date
    May 2001
    Location
    Calle
    Posts
    9

    Wink

    you can use imageedit ocx

    Imgedit1.Image = path to picture
    Imgedit1.Display
    Imgedit1.RotateRight or RotateLeft this rotates your image 90°
    Imgedit1.Save

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