forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

invalid image size

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Fri Mar 03, 2006 8:11 pm    Post subject: invalid image size Reply with quote

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
View user's profile Send private message
OCteam



Joined: 05 Mar 2006
Posts: 7
Location: UK

PostPosted: Sun Mar 05, 2006 11:37 pm    Post subject: Re: invalid image size Reply with quote

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
View user's profile Send private message Visit poster's website
my psprecious



Joined: 17 Feb 2006
Posts: 24

PostPosted: Tue Mar 07, 2006 2:28 pm    Post subject: Reply with quote

try 500x500 instead, it worked for me, after getting the same error
Back to top
View user's profile Send private message
matriculated



Joined: 04 Mar 2006
Posts: 31

PostPosted: Wed Mar 08, 2006 3:06 am    Post subject: Reply with quote

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
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Thu Mar 09, 2006 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
my psprecious



Joined: 17 Feb 2006
Posts: 24

PostPosted: Sun Mar 12, 2006 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group