diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 12:40:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 12:54:51 +0100 |
commit | 9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (patch) | |
tree | b414efb4a9e5a286664270d9f98ad0c8d8467eda /fitz | |
parent | 1f766b618e418b5a4d4e146506b75c89b6c416fb (diff) | |
download | mupdf-9cbfb766564d0e80d259e3e0a919d72a75bbb6ee.tar.xz |
Split XPS header. Update Makefile dependencies. Add pixmap w/h accessors.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz.h | 10 | ||||
-rw-r--r-- | fitz/res_pixmap.c | 12 |
2 files changed, 22 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 8570f077..85e1feea 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1126,6 +1126,16 @@ typedef struct fz_pixmap_s fz_pixmap; fz_bbox fz_bound_pixmap(fz_pixmap *pix); /* + fz_pixmap_width: Return the width of the pixmap in pixels. +*/ +int fz_pixmap_width(fz_context *ctx, fz_pixmap *pix); + +/* + fz_pixmap_height: Return the height of the pixmap in pixels. +*/ +int fz_pixmap_height(fz_context *ctx, fz_pixmap *pix); + +/* fz_new_pixmap: Create a new pixmap, with it's origin at (0,0) cs: The colorspace to use for the pixmap, or NULL for an alpha diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index fc40135e..7aaf8ce0 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -110,6 +110,18 @@ fz_bound_pixmap(fz_pixmap *pix) return bbox; } +int +fz_pixmap_width(fz_context *ctx, fz_pixmap *pix) +{ + return pix->w; +} + +int +fz_pixmap_height(fz_context *ctx, fz_pixmap *pix) +{ + return pix->h; +} + void fz_clear_pixmap(fz_context *ctx, fz_pixmap *pix) { |