| View previous topic :: View next topic |
| Author |
Message |
PsPfReAK
Joined: 28 Mar 2009 Posts: 61
|
Posted: Wed Apr 08, 2009 11:55 pm Post subject: blitting an image from an eboot? |
|
|
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 |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Fri Apr 10, 2009 8:55 am Post subject: |
|
|
| 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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Fri Apr 10, 2009 1:20 pm Post subject: |
|
|
| You can use bin2c to create a header file out of it. The data will be stored in an array. |
|
| Back to top |
|
 |
|