00001 /* Copyright (C) 2001-2007 Peter Selinger. 00002 This file is part of Potrace. It is free software and it is covered 00003 by the GNU General Public License. See the file COPYING for details. */ 00004 00005 /* $Id: bitmap_io.h 147 2007-04-09 00:44:09Z selinger $ */ 00006 /* bitmap input/output functions */ 00007 00008 #ifndef BITMAP_IO_H 00009 #define BITMAP_IO_H 00010 00011 #include <stdio.h> 00012 #include "bitmap.h" 00013 00014 /* Note that bitmaps are stored bottom to top, i.e., the first 00015 scanline is the bottom-most one */ 00016 00017 extern char *bm_read_error; 00018 00019 int bm_read(FILE *f, double blacklevel, potrace_bitmap_t **bmp); 00020 void bm_writepbm(FILE *f, potrace_bitmap_t *bm); 00021 int bm_print(FILE *f, potrace_bitmap_t *bm); 00022 00023 #endif /* BITMAP_IO_H */ 00024