3 #ifndef PNGBITMAP_HEADER_READ
4 #define PNGBITMAP_HEADER_READ 1
7 #ifdef HAVE_CSTD_INCLUDE
17 PNGBitmap (
const int w,
const int h,
const int bpp=1);
19 void write (
const string filename);
24 static png_structp png_ptr_;
25 static png_infop info_ptr_;
26 static png_color* palettes_[];
27 static png_byte* trans_[];
28 static void png_error_fn (png_structp png_ptr,
29 png_const_charp error_msg);
30 static void png_warning_fn (png_structp png_ptr,
31 png_const_charp warning_msg);