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 

Converting images for dev

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



Joined: 28 Apr 2005
Posts: 91

PostPosted: Thu Jul 07, 2005 7:29 am    Post subject: Converting images for dev Reply with quote

How do you convert image files to whatever those numbers are in the bitmap.c file
Back to top
View user's profile Send private message AIM Address
wulf



Joined: 13 Apr 2005
Posts: 81

PostPosted: Thu Jul 07, 2005 10:05 am    Post subject: Reply with quote

those numbers are the data for the rgb values for the pixels in the image.. they are converted like that so that it makes it easier to use an image in a c program..
you can use the Gimp to convert them.. but you should look at some source code (hello world is an example) to see how they are used, because I think the gimp has a couple of ways to do it.. you can also use bmp2c.. I think it's somewhere on this site, but I'm not sure where..

later

Wulf
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