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.
52 lines
1.6 KiB
52 lines
1.6 KiB
#ifndef MUPDF_FITZ_OUTPUT_PNM_H
|
|
#define MUPDF_FITZ_OUTPUT_PNM_H
|
|
|
|
#include "mupdf/fitz/system.h"
|
|
#include "mupdf/fitz/context.h"
|
|
#include "mupdf/fitz/output.h"
|
|
#include "mupdf/fitz/band-writer.h"
|
|
#include "mupdf/fitz/pixmap.h"
|
|
#include "mupdf/fitz/bitmap.h"
|
|
|
|
/*
|
|
fz_save_pixmap_as_pnm: Save a pixmap as a PNM image file.
|
|
*/
|
|
void fz_save_pixmap_as_pnm(fz_context *ctx, fz_pixmap *pixmap, const char *filename);
|
|
|
|
void fz_write_pixmap_as_pnm(fz_context *ctx, fz_output *out, fz_pixmap *pixmap);
|
|
|
|
fz_band_writer *fz_new_pnm_band_writer(fz_context *ctx, fz_output *out);
|
|
|
|
/*
|
|
fz_save_pixmap_as_pam: Save a pixmap as a PAM image file.
|
|
*/
|
|
void fz_save_pixmap_as_pam(fz_context *ctx, fz_pixmap *pixmap, const char *filename);
|
|
|
|
void fz_write_pixmap_as_pam(fz_context *ctx, fz_output *out, fz_pixmap *pixmap);
|
|
|
|
fz_band_writer *fz_new_pam_band_writer(fz_context *ctx, fz_output *out);
|
|
|
|
/*
|
|
fz_save_bitmap_as_pbm: Save a bitmap as a PBM image file.
|
|
*/
|
|
void fz_save_bitmap_as_pbm(fz_context *ctx, fz_bitmap *bitmap, const char *filename);
|
|
|
|
void fz_write_bitmap_as_pbm(fz_context *ctx, fz_output *out, fz_bitmap *bitmap);
|
|
|
|
fz_band_writer *fz_new_pbm_band_writer(fz_context *ctx, fz_output *out);
|
|
|
|
void fz_save_pixmap_as_pbm(fz_context *ctx, fz_pixmap *pixmap, const char *filename);
|
|
|
|
/*
|
|
fz_save_bitmap_as_pkm: Save a 4bpp cmyk bitmap as a PAM image file.
|
|
*/
|
|
void fz_save_bitmap_as_pkm(fz_context *ctx, fz_bitmap *bitmap, const char *filename);
|
|
|
|
void fz_write_bitmap_as_pkm(fz_context *ctx, fz_output *out, fz_bitmap *bitmap);
|
|
|
|
fz_band_writer *fz_new_pkm_band_writer(fz_context *ctx, fz_output *out);
|
|
|
|
void fz_save_pixmap_as_pkm(fz_context *ctx, fz_pixmap *pixmap, const char *filename);
|
|
|
|
#endif
|