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 

Display a full 480x272 image?

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



Joined: 21 Jan 2008
Posts: 8

PostPosted: Tue Jan 22, 2008 6:49 am    Post subject: Display a full 480x272 image? Reply with quote

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
Code:
y +=
and
Code:
x +=
so it would display the full image?

Thanks in advance.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Jan 22, 2008 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
mirzab14



Joined: 21 Jan 2008
Posts: 8

PostPosted: Tue Jan 22, 2008 8:27 am    Post subject: Reply with quote

Thanks for the help.
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