Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Reading portions of bmp pics
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xHoly-Divinity




PostPosted: Mon Nov 06, 2006 8:02 pm   Post subject: Reading portions of bmp pics

Lets say i did not want to create 50 diff files for the movement of a character. So I drew them all in one .bmp. How would i access individual areas/segments of the picture? I've attached a sample one i've seen in a previous program
Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Mon Nov 06, 2006 11:39 pm   Post subject: (No subject)

Actually im glad you asked this question, because i myself was wondering the same thing.

Also, if you can tell us how to creat a working one? would the pics have to be spaced a certain distance from the next pic, etC:..
Clayton




PostPosted: Tue Nov 07, 2006 8:24 am   Post subject: (No subject)

well probably you would have to have them spaced apart at exactly the same distance apart (if you are planning sprite animation, which by the sound of it you are), then you could load the picture up to the screen, then have an array and a for loop use Pic.Save to travel along the big picture and assign a smaller picture to each element of the array.

Honestly though, I think it would just be easier to use all 50 serparate pictures if they are different, as thats what happens in most games, simply to cut down on difficulty. Remember the acronym KISS: Keep It Simple Stupid.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: