Display a full 480x272 image?

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

Moderators: cheriff, TyRaNiD

Post Reply
mirzab14
Posts: 8
Joined: Mon Jan 21, 2008 5:37 pm

Display a full 480x272 image?

Post by mirzab14 »

Alright, Im trying to display a 480x272 image onto the screen.

Code: Select all

sceDisplayWaitVblankStart();
while &#40;x < 480&#41; &#123;
while &#40;y < 272&#41; &#123;
blitAlphaImageToScreen&#40;0 ,0 ,480 , 272, ourImage, x, y&#41;;
y += 480;
&#125;
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

Code: Select all

y +=
and

Code: Select all

x +=
so it would display the full image?

Thanks in advance.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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: Select all

blitAlphaImageToScreen&#40;0 ,0 ,480 , 272, ourImage, 0, 0&#41;;
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.
mirzab14
Posts: 8
Joined: Mon Jan 21, 2008 5:37 pm

Post by mirzab14 »

Thanks for the help.
Post Reply