Image rotation

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Debug
Posts: 16
Joined: Thu Oct 06, 2005 4:16 am

Image rotation

Post by Debug »

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: Select all

catch(IOException e){
//oh crap
}
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

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
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

Just change the x/y by sin(pi/2) and cos(pi/2)
Proud Dvorak User
US 1.5 PSP (Original)
Post Reply