Statistics
| Revision:

gvsig-raster / libjni-potrace / trunk / libjni-potrace / src / main / native / jpotrace / bitmap_io.h @ 1780

History | View | Annotate | Download (684 Bytes)

1
/* Copyright (C) 2001-2007 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
/* $Id: bitmap_io.h 147 2007-04-09 00:44:09Z selinger $ */
6
/* bitmap input/output functions */
7

    
8
#ifndef BITMAP_IO_H
9
#define BITMAP_IO_H
10

    
11
#include <stdio.h>
12
#include "bitmap.h"
13

    
14
/* Note that bitmaps are stored bottom to top, i.e., the first
15
   scanline is the bottom-most one */
16

    
17
extern char *bm_read_error;
18

    
19
int bm_read(FILE *f, double blacklevel, potrace_bitmap_t **bmp);
20
void bm_writepbm(FILE *f, potrace_bitmap_t *bm);
21
int bm_print(FILE *f, potrace_bitmap_t *bm);
22

    
23
#endif /* BITMAP_IO_H */
24