1 #ifndef MUPDF_FITZ_OUTPUT_PNM_H
2 #define MUPDF_FITZ_OUTPUT_PNM_H
4 #include "mupdf/fitz/system.h"
5 #include "mupdf/fitz/context.h"
6 #include "mupdf/fitz/output.h"
7 #include "mupdf/fitz/pixmap.h"
8 #include "mupdf/fitz/bitmap.h"
11 fz_write_pnm: Save a pixmap as a pnm
13 filename: The filename to save as (including extension).
15 void fz_write_pnm(fz_context *ctx, fz_pixmap *pixmap, char *filename);
17 void fz_output_pnm_header(fz_output *out, int w, int h, int n);
18 void fz_output_pnm_band(fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *p);
21 fz_write_pam: Save a pixmap as a pam
23 filename: The filename to save as (including extension).
25 void fz_write_pam(fz_context *ctx, fz_pixmap *pixmap, char *filename, int savealpha);
27 void fz_output_pam_header(fz_output *out, int w, int h, int n, int savealpha);
28 void fz_output_pam_band(fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *sp, int savealpha);
31 fz_write_pbm: Save a bitmap as a pbm
33 filename: The filename to save as (including extension).
35 void fz_write_pbm(fz_context *ctx, fz_bitmap *bitmap, char *filename);