[Mplayer-users] font bitmap format?

Christoph Lampert lampert at math.chalmers.se
Tue Apr 10 17:57:09 CEST 2001


>> what we need?
>> - 256 color greyscaled image
>> - possibly uncompressed, or very easy & fast & small decompressor
>> - lossless!
>> - supported by common image manipulation programs (gimp,xv,photoshop,psp...)
>
Actually you can write PGM-files (256 greyscales) with 2 lines of C:

fprintf(file, "P5\n%d %d\n255\n", xsize, ysize);  // the header is easy
fwrite(data, xsize, ysize, file);		 // rest if plain data

data has to be organized in usual order, like "english text is read"
as the man-page says. Works very well. 

chl

-- 
Dipl. math. Christoph Lampert (complex analysis, integral formulae)
Email: gruel at gmx.de                |     Email: lampert at math.chalmers.se


_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list