 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
mirzab14
Joined: 21 Jan 2008 Posts: 8
|
Posted: Tue Jan 22, 2008 6:49 am Post subject: Display a full 480x272 image? |
|
|
Alright, Im trying to display a 480x272 image onto the screen.
| Code: | sceDisplayWaitVblankStart();
while (x < 480) {
while (y < 272) {
blitAlphaImageToScreen(0 ,0 ,480 , 272, ourImage, x, y);
y += 480;
}
x += 272;
y = 0; |
The code works, but it doesn't display a full 480x272 image. It display two half's of the image (if that makes sense).
What would I need to set the values of and so it would display the full image?
Thanks in advance. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Jan 22, 2008 8:16 am Post subject: |
|
|
That almost looks like flame bait on a forum as strict as this.
It's more like dribble than any sort of program.
Try this on it's own:
| Code: |
blitAlphaImageToScreen(0 ,0 ,480 , 272, ourImage, 0, 0);
|
and then try going here:
http://www.psp-programming.com/forums/
to learn some basic programming with tutorials that have been very well written.
One of those tutorials will no doubt blit an image tot he screen.
Art. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
mirzab14
Joined: 21 Jan 2008 Posts: 8
|
Posted: Tue Jan 22, 2008 8:27 am Post subject: |
|
|
| Thanks for the help. |
|
| Back to top |
|
 |
|
|
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
|