blitting an image from an eboot?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PsPfReAK
Posts: 61
Joined: Sat Mar 28, 2009 9:02 am
Contact:

blitting an image from an eboot?

Post by PsPfReAK »

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);

???
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

You can use bin2c to create a header file out of it. The data will be stored in an array.
Post Reply