| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Fri Mar 03, 2006 8:11 pm Post subject: invalid image size |
|
|
I got a invalid image size error when i tried to create a new image of 512X512. I thought luaplayer supported this resolution?
Loading a 512X512 png works though _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
OCteam
Joined: 05 Mar 2006 Posts: 7 Location: UK
|
Posted: Sun Mar 05, 2006 11:37 pm Post subject: Re: invalid image size |
|
|
| the underminer wrote: | I got a invalid image size error when i tried to create a new image of 512X512. I thought luaplayer supported this resolution?
Loading a 512X512 png works though |
I've noticed this as well - Lua Player will not load images over 512x512. Just use multiple images stored next to eachother. This must be a game application right ;) ? _________________ PP121494863-PSP1001
www.illfoundedmind.com |
|
| Back to top |
|
 |
my psprecious
Joined: 17 Feb 2006 Posts: 24
|
Posted: Tue Mar 07, 2006 2:28 pm Post subject: |
|
|
| try 500x500 instead, it worked for me, after getting the same error |
|
| Back to top |
|
 |
matriculated
Joined: 04 Mar 2006 Posts: 31
|
Posted: Wed Mar 08, 2006 3:06 am Post subject: |
|
|
I actually have this code:
| Code: |
if xx > 480 then xx = 480 end
if yy > 272 then yy = 272 end
menuImg = Image.createEmpty(xx, yy)
|
and I get that same invalid size error. And that code is bulletproof I tells ya. BULLETPROOF! :P |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Thu Mar 09, 2006 9:30 pm Post subject: |
|
|
| Quote: | | try 500x500 instead, it worked for me, after getting the same error |
Hmm if 500x500 works and 480x272 doesn't work...
then what is the maximum size?
Anyways, I need 512 width, not a pixel less. Or I will have to split up, wich I already did. _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
my psprecious
Joined: 17 Feb 2006 Posts: 24
|
Posted: Sun Mar 12, 2006 3:58 am Post subject: |
|
|
The max is 512x512, but for some unknown reason sometime I get an error like you
so splited in smaller parts actually 256x256 and everything works well
it's the best I can do |
|
| Back to top |
|
 |
|