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 

blitting an image from an eboot?

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



Joined: 28 Mar 2009
Posts: 61

PostPosted: Wed Apr 08, 2009 11:55 pm    Post subject: blitting an image from an eboot? Reply with quote

is it possible to blit an image from an eboot?
for example

#include example.png

Image* Background;
Background = loadImage("the path?");
blitAlphaImageToScreen(0, 0 , 480, 272, Background, 0, 0);

???
Back to top
View user's profile Send private message Visit poster's website
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Fri Apr 10, 2009 8:55 am    Post subject: Reply with quote

Somewhere in sdk there's a tool to "compile" an image into an object that can then be linked to main executable: can't remember details because this is definitely not the way i would use images. Anyway, this is not a good idea as a rule of thumb, especially if your images are many/expensive. On a side note, this is waaaaay too basic question (and not necessarily PSP related) to be discussed here. Not to be unkind, but there are many forums dedicated to programming basics.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Apr 10, 2009 1:20 pm    Post subject: Reply with quote

You can use bin2c to create a header file out of it. The data will be stored in an array.
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 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