|
|
"Super fast image rotation", by badjim
|
These functions work a bit like the RotateImage command, but they are fast enough for realtime use. They rotate around the image handle and do not resize the image. They clip some of the image off so you may need a transparent border around the image to prevent vital parts being chopped off. There are two versions. A two pass version that is fast but has really bad clipping at 90 degree angles, and a three pass version that is slower (but still pretty quick) but doesn't clip too much of the image off at any angle. |
| Code | | | |