Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


New Image File Type Plz some one answer


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 14 December 1999 - 05:31 PM

For my game I am making a new graphics file type. What i want to do is make a program that will convert Bmp's into the new file type so my graphics crew use programs like 3d max and such.The new file type will be in acii and the colors will be represented with pallestte entire numbers(ex- 0 = black 1= light green etc). What i want to know is is there anyway to make a program read the individual pixels of a bitmap so i can get thier color and position.

Sponsor:

#2 joeG   Members   -  Reputation: 172

Like
Likes
Like

Posted 14 December 1999 - 05:31 PM

Sure, use Windows (I assume your using Windows because of your need for bmp files) or write your own. A bmp file's structure can be obtained through the help files, but basically is made up of 4 parts.

1. The file header
2. The info header
3. A palette or bit masks depending on the bit depth you are using
4. The actual bits of the bitmap

Code samples aren't too hard to find (does it look like I know where any are offhand?), either for writing your own or loading one from Windows.

Hope this didn't confuse you,

JoeG





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS