Image.createEmpty(480, 272) - Can we create a bigger image?

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

Moderators: Shine, Insert_witty_name

Post Reply
spyk
Posts: 14
Joined: Wed Mar 22, 2006 9:50 pm

Image.createEmpty(480, 272) - Can we create a bigger image?

Post by spyk »

Hi all
In my script, I use this fonction
Image.createEmpty(480, 272)
But I want make a bigger picture.... And when I type
Image.createEmpty(1000, 500) It say "Invalid picture size..."
Hmm. How can we create a picture bigger than 480, 272?

Thank!!
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

I'm pretty sure the max is 512x512.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

correct 512x512 is max, but you can create larger images using tiles (sidescroller etc)

greets
lumo
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

Yeah, but technically, that's more than one image.
Giuliano
Posts: 78
Joined: Tue Sep 13, 2005 10:26 am

Post by Giuliano »

Kameku wrote:Yeah, but technically, that's more than one image.
But if it gets the goal accomplished, then what's the difference ? :)
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

I'm sure the filesize would differ from one image and say, 20, as would game speed.
Giuliano
Posts: 78
Joined: Tue Sep 13, 2005 10:26 am

Post by Giuliano »

Kameku wrote:I'm sure the filesize would differ from one image and say, 20, as would game speed.
Blitting is the slow part so it is better to blit one big image rathe than 4 small ones but the max being 512x512 allows images to be large enough so that you do not have to blit too many images at once
Post Reply