From d521de5ffad2dcc6c151e25373dd8a26a84440eb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 30 Dec 2015 13:49:53 +0100 Subject: Add pixmap struct accessors. --- include/mupdf/fitz/pixmap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index 64f60e03..42a70c7b 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -30,6 +30,9 @@ int fz_pixmap_width(fz_context *ctx, fz_pixmap *pix); */ int fz_pixmap_height(fz_context *ctx, fz_pixmap *pix); +int fz_pixmap_x(fz_context *ctx, fz_pixmap *pix); +int fz_pixmap_y(fz_context *ctx, fz_pixmap *pix); + /* fz_new_pixmap: Create a new pixmap, with it's origin at (0,0) @@ -143,6 +146,11 @@ int fz_pixmap_components(fz_context *ctx, fz_pixmap *pix); */ unsigned char *fz_pixmap_samples(fz_context *ctx, fz_pixmap *pix); +/* + fz_pixmap_stride: Return the number of bytes in a row in the pixmap. +*/ +int fz_pixmap_stride(fz_context *ctx, fz_pixmap *pix); + void fz_pixmap_set_resolution(fz_pixmap *pix, int res); /* -- cgit v1.2.3