2015-12-03 15:46:17 +00:00
|
|
|
/* Copyright (C) 2001-2015 Peter Selinger.
|
2010-06-10 18:43:12 +00:00
|
|
|
* This file is part of Potrace. It is free software and it is covered
|
|
|
|
* by the GNU General Public License. See the file COPYING for details. */
|
|
|
|
|
|
|
|
/* bitmap input/output functions */
|
|
|
|
|
|
|
|
#ifndef BITMAP_IO_H
|
|
|
|
#define BITMAP_IO_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-12-03 15:46:17 +00:00
|
|
|
#include "bitmap.h"
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
/* Note that bitmaps are stored bottom to top, i.e., the first
|
|
|
|
* scanline is the bottom-most one */
|
|
|
|
|
2015-12-03 15:46:17 +00:00
|
|
|
extern const char* bm_read_error;
|
2010-06-10 18:43:12 +00:00
|
|
|
|
2015-12-03 15:46:17 +00:00
|
|
|
int bm_read( FILE* f, double blacklevel, potrace_bitmap_t** bmp );
|
|
|
|
void bm_writepbm( FILE* f, potrace_bitmap_t* bm );
|
|
|
|
int bm_print( FILE* f, potrace_bitmap_t* bm );
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
#endif /* BITMAP_IO_H */
|