You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
650 B

  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. /* bitmap input/output functions */
  5. #ifndef BITMAP_IO_H
  6. #define BITMAP_IO_H
  7. #include "bitmap.h"
  8. #include <stdio.h>
  9. /* Note that bitmaps are stored bottom to top, i.e., the first
  10. * scanline is the bottom-most one */
  11. extern const char* bm_read_error;
  12. int bm_read( FILE* f, double blacklevel, potrace_bitmap_t** bmp );
  13. void bm_writepbm( FILE* f, potrace_bitmap_t* bm );
  14. int bm_print( FILE* f, potrace_bitmap_t* bm );
  15. #endif /* BITMAP_IO_H */