Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7858 views
1
#ifndef MUPDF_FITZ_OUTPUT_PNM_H
2
#define MUPDF_FITZ_OUTPUT_PNM_H
3
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"
9
10
/*
11
fz_write_pnm: Save a pixmap as a pnm
12
13
filename: The filename to save as (including extension).
14
*/
15
void fz_write_pnm(fz_context *ctx, fz_pixmap *pixmap, char *filename);
16
17
void fz_output_pnm_header(fz_context *ctx, fz_output *out, int w, int h, int n);
18
void fz_output_pnm_band(fz_context *ctx, fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *p);
19
20
/*
21
fz_write_pam: Save a pixmap as a pam
22
23
filename: The filename to save as (including extension).
24
*/
25
void fz_write_pam(fz_context *ctx, fz_pixmap *pixmap, char *filename, int savealpha);
26
27
void fz_output_pam_header(fz_context *ctx, fz_output *out, int w, int h, int n, int savealpha);
28
void fz_output_pam_band(fz_context *ctx, fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *sp, int savealpha);
29
30
/*
31
fz_write_pbm: Save a bitmap as a pbm
32
33
filename: The filename to save as (including extension).
34
*/
35
void fz_write_pbm(fz_context *ctx, fz_bitmap *bitmap, char *filename);
36
37
#endif
38
39