[MUD-Dev] Re: Terrain/Landmass & GIF/BMP
Caliban Tiresias Darklock
caliban at darklock.com
Wed Oct 7 15:15:04 CEST 1998
On 02:49 PM 10/7/98 -0700, I personally witnessed quzah [sotfhome] jumping
up to say:
>
>Does anyone know of any good links that explain how to
>output either "x number of bits" or "x number of bytes" to a
>GIF or BMP?
Storing "X number of pixels" is done by outputting your RGB triplets
backwards -- i.e. BGR triplets. SImply put, fill your bitmap info
structure, write the header, and write out your pixels... however many or
few you want.
I can mail you the format specs if you like, or paraphrase them for easier
coding. There's a lot of if/but/maybe/possibly in the full specification,
due to the enhancements made to BMP for the DIB format, but if you just
want to dump raw data to the file you don't need *all* the specs.
--------------------------------------------------------------------------
As the fire burneth a wood, and the flame setteth the mountains on fire;
So persecute them with thy tempest, and make them afraid with thy storm.
---------------------------[ Psalms, 83:14-15 ]---------------------------
Caliban Tiresias Darklock <caliban at darklock.com> | "Hell, you don't
Darklock Communications <http://www.darklock.com/> | know me."
FREE KEVIN MITNICK! <http://www.kevinmitnick.com/> | - Charles Manson
--------------------------------------------------------------------------
And remember, if you don't kiss Hank's ass he'll kick the shit out of you.
--------------------------------------------------------------------------
More information about the mud-dev-archive
mailing list