From: "Jean-Sebastien Payette" Newsgroups: comp.os.msdos.djgpp Subject: Saving BITMAP in allegro Date: Sun, 7 Dec 1997 16:20:57 -0500 Organization: VTL Lines: 28 Message-ID: <66f3uo$j1r$1@walton.videotron.net> NNTP-Posting-Host: modemcable104.147.mmtl.videotron.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk How do I save a (allegro) bitmap to a file in a raw format??? the struct is define as follow in the allegro doc: typedef struct BITMAP { int w, h; - size of the bitmap in pixels int clip; - non-zero if clipping is turned on int cl, cr, ct, cb; - clip rectangle left, right, top, and bottom int seg; - segment for use with the line pointers unsigned char *line[ ]; - pointers to the start of each line } BITMAP; The author say that there is some other stuff in the struct but don't tell what?? I wanna save a file with a header (for the description of a tile, for a rpg game ) with a array (255 in fact!) of those bitmap to reload them directly without bothering with 255 1.4 k pcx file I know about the Datafile but I don't want to use it, it won't fit in what i'm trying to do... Thanx