summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-30 13:49:53 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-05 14:47:37 +0100
commitd521de5ffad2dcc6c151e25373dd8a26a84440eb (patch)
tree8867964f50123897b2d45d28b9c927b500cc1f04 /include
parent39b7ee963183e02ae44c4d55607d4fdb7759e585 (diff)
downloadmupdf-d521de5ffad2dcc6c151e25373dd8a26a84440eb.tar.xz
Add pixmap struct accessors.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/pixmap.h8
1 files changed, 8 insertions, 0 deletions
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);
/*