Home / utility binaries
Name Modified Size InfoDownloads / Week
Parent folder
README 2011-02-03 1.2 kB
Linux X64 binaries.tgz 2011-02-03 7.1 kB
Totals: 2 Items   8.3 kB 0
These are pre-compiled versions of the utility programs:
bmp2header_sprite
bmp2header_font
bmp2bin_sprite

They were compiled on Ubuntu x64, but should run on any 64-bit linux.

bmp2header_sprite [24bbp bitmap file]
bmp2header_sprite outputs a C style array definition for a sprite matching the 
input .bmp any pixel in the source image that is  black(0,0,0) will be set, 
any other color pixels will be unset. output is to STDOUT

bmp2bin_sprite [24bbp bitmap file]
bmp2bin_sprite outputs a series of bytes for a sprite matching the
input .bmp any pixel in the source image that is  black(0,0,0) will be set,   
any other color pixels will be unset. output is to STDOUT 
(redirect to a file with > filename)

bmp2header_font [width of character] [font space] [bitmap.bmp] > [headerfile.h]
font space is the number of pixels to skip before printing the next character.
(usually set to 1 more than the character width to give 1 pixel space between 
characters when displayed) 
height of character is calculated from image, number of characters is 
int(bitmapwidth/characterwidth],if your image is a non-integral number of 
character widths wide, the extra will be ignored. Outputs to stdout, use 
redirection to catch it in a file



Source: README, updated 2011-02-03