1 /* Copyright (C) 2001-2017 Peter Selinger. 2 * This file is part of Potrace. It is free software and it is covered 3 * by the GNU General Public License. See the file COPYING for details. */ 4 5 /* bitmap input/output functions */ 6 7 #ifndef BITMAP_IO_H 8 #define BITMAP_IO_H 9 10 #include "bitmap.h" 11 #include <stdio.h> 12 13 /* Note that bitmaps are stored bottom to top, i.e., the first 14 * scanline is the bottom-most one */ 15 16 extern const char* bm_read_error; 17 18 int bm_read( FILE* f, double blacklevel, potrace_bitmap_t** bmp ); 19 void bm_writepbm( FILE* f, potrace_bitmap_t* bm ); 20 int bm_print( FILE* f, potrace_bitmap_t* bm ); 21 22 #endif /* BITMAP_IO_H */ 23