Results 1 to 11 of 11

Thread: Rotated Image

  1. #1
    Red Rush-In
    Guest

    Rotated Image

    Is there a way to change the agle an image is drawn using BitBlt or a simular function? Also I'm wanting to do this without using DirectX.

  2. #2
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    I don't think so. The pixels should be rotated using very fast algorithms and in a memory DC or matrix.

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    There is an API called PlgBlt or something similar, someone said that it can rotate, I'm not sure. You might want to look around for it.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    PlgBlt() is not supported in Win9x/Me/CE, only NT/2K and probably also XP.

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    That's the bad part. You could, I suppose, use Cos() and Sin(), but these create nasty rotation holes.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well there have been a lot of posts in this forum before answering that question. If you want to do it without DX I think (can't be sure though, you should read the old threads) the code by David Brebner (www.ur.co.nz) does the job quite fast.
    Sanity is a full time job

    Puh das war harter Stoff!

  7. #7
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  8. #8
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well isn't that a great service here ?
    Sanity is a full time job

    Puh das war harter Stoff!

  9. #9
    Red Rush-In
    Guest
    Exactly what I needed! Thanks guys.

  10. #10
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yea, it was all thr0p
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  11. #11
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    MisanThrop!!! please
    Sanity is a full time job

    Puh das war harter Stoff!

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