File indexing completed on 2024-12-22 04:04:10
0001 /* Copyright (C) 2001-2019 Peter Selinger. 0002 This file is part of Potrace. It is free software and it is covered 0003 by the GNU General Public License. See the file COPYING for details. */ 0004 0005 /* bitmap input/output functions */ 0006 0007 #ifndef BITMAP_IO_H 0008 #define BITMAP_IO_H 0009 0010 #include <stdio.h> 0011 #include "bitmap.h" 0012 0013 /* Note that bitmaps are stored bottom to top, i.e., the first 0014 scanline is the bottom-most one */ 0015 0016 extern const char *bm_read_error; 0017 0018 int bm_read(FILE *f, double blacklevel, potrace_bitmap_t **bmp); 0019 void bm_writepbm(FILE *f, potrace_bitmap_t *bm); 0020 int bm_print(FILE *f, potrace_bitmap_t *bm); 0021 0022 #endif /* BITMAP_IO_H */ 0023