Thread: Try a real Maze
View Single Post
Old 2004-03-30, 00:27   #7
dsouza123
 
dsouza123's Avatar
 
Sep 2002

2×331 Posts
Default

What format(s) were you able to save it to ?

It is monochrome so it could be saved as 1 bit per pixel.

I know xbm format is monochrome and is viewable by web browsers.
It could then be zipped and maybe make the 100k limit.

The xbm format is text based so it should compress well.

Here is an example

#define count_width 40
#define count_height 16
static char count_bits[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3c,0x3c,0x38,0x3c,0x3c,0x66,0x66,0x0c,0x66,0x66,0x60,0x66,0x06,0x60,0x66,0x60,0x66,0x06,0x60,0x66,0x30,0x66,0x06,0x30,0x66,0x30,0x3e,0x3e,0x30,0x66,0x18,0x3e,0x66,0x18,0x7c,0x0c,0x66,0x66,0x0c,0x60,0x0c,0x66,0x66,0x0c,0x60,0x06,0x66,0x66,0x06,0x60,0x06,0x66,0x66,0x06,0x60,0x7e,0x3c,0x3c,0x7e,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};

Just copy and paste it into a text editor and save as filename.xbm

The first five 0x00 make the top row.
dsouza123 is offline   Reply With Quote