KiCad PCB EDA Suite
bitmap_io.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2015 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 <stdio.h>
11 #include "bitmap.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 */
int bm_read(FILE *f, double blacklevel, potrace_bitmap_t **bmp)
Definition: bitmap_io.cpp:148
int bm_print(FILE *f, potrace_bitmap_t *bm)
Definition: bitmap_io.cpp:1096
const char * bm_read_error
Definition: bitmap_io.cpp:146
void bm_writepbm(FILE *f, potrace_bitmap_t *bm)
Definition: bitmap_io.cpp:1068