summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/output-pnm.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-17 22:02:22 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-18 17:37:13 +0200
commit19126babc37ac8243de60b3ca388bb5102661274 (patch)
treeedcec3f87b5024b6deb6843ca757bbfda81fe44a /include/mupdf/fitz/output-pnm.h
parentcfc58fef94e63dc5a42979e3a9bf806d104462c5 (diff)
downloadmupdf-19126babc37ac8243de60b3ca388bb5102661274.tar.xz
Split fitz.h into subheaders.
Diffstat (limited to 'include/mupdf/fitz/output-pnm.h')
-rw-r--r--include/mupdf/fitz/output-pnm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/mupdf/fitz/output-pnm.h b/include/mupdf/fitz/output-pnm.h
new file mode 100644
index 00000000..408dd299
--- /dev/null
+++ b/include/mupdf/fitz/output-pnm.h
@@ -0,0 +1,36 @@
+#ifndef MUPDF_FITZ_OUTPUT_PNM_H
+#define MUPDF_FITZ_OUTPUT_PNM_H
+
+/*
+ fz_write_pixmap: Save a pixmap out.
+
+ name: The prefix for the name of the pixmap. The pixmap will be saved
+ as "name.png" if the pixmap is RGB or Greyscale, "name.pam" otherwise.
+
+ rgb: If non zero, the pixmap is converted to rgb (if possible) before
+ saving.
+*/
+void fz_write_pixmap(fz_context *ctx, fz_pixmap *img, char *name, int rgb);
+
+/*
+ fz_write_pnm: Save a pixmap as a pnm
+
+ filename: The filename to save as (including extension).
+*/
+void fz_write_pnm(fz_context *ctx, fz_pixmap *pixmap, char *filename);
+
+/*
+ fz_write_pam: Save a pixmap as a pam
+
+ filename: The filename to save as (including extension).
+*/
+void fz_write_pam(fz_context *ctx, fz_pixmap *pixmap, char *filename, int savealpha);
+
+/*
+ fz_write_pbm: Save a bitmap as a pbm
+
+ filename: The filename to save as (including extension).
+*/
+void fz_write_pbm(fz_context *ctx, fz_bitmap *bitmap, char *filename);
+
+#endif