Results 1 to 4 of 4

Thread: Rotating Images

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    I was wondering is there a way of rotating an image through a given angle.

    90, 180, 270, I can do these by swaping X & Y locations...
    But something like 23.8 Degrees, how do you do that?

    Steve.

  2. #2
    New Member
    Join Date
    Dec 1999
    Posts
    13

    Post

    If you are using images that can be viewed with the free Wang/Kodak Image Edit control, there is a Rotate_Right and Rotate_Left method that can be called to rotate in 45 degree increments.

    What type image?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    The image type is not important.

    I actually need to be able to rotate images with code. I need to have an image in a form, picture box etc... and by pressing a key, have the image rotate.

    The image is quite small, 128x128 pixels. So a routine to do this would probably be fast enough.

    Anyone who knows of an algorithm to carry out such a transformation. Please Help!

    Steve.

  4. #4
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    There is a tip on Vb-World about it: Rotating Image Through Any Angle
    Hope this will help

    ------------------
    Visual Basic Programmer
    ------------------
    PolComSoft
    You will hear a lot about it.


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