| View previous topic :: View next topic |
| Author |
Message |
Debug
Joined: 06 Oct 2005 Posts: 16
|
Posted: Fri Oct 14, 2005 6:40 pm Post subject: Image rotation |
|
|
Is there any way to rotate an image? I was wondering, because it would be really helpful for a game i'm working on, and I checked the snake game, but it uses different frames instead of rotating :( If I could rotate images it would save massive disk space... Any help would be appreciated. _________________
| Code: |
catch(IOException e){
//oh crap
}
|
|
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Fri Oct 14, 2005 6:42 pm Post subject: |
|
|
afaik shine already wrote such a function even up on the luaplayer homepage? the rotate text function, which prints text to an image and rotates it...
easy to find... _________________ "Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Fri Oct 14, 2005 9:56 pm Post subject: |
|
|
Just change the x/y by sin(pi/2) and cos(pi/2) _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
|