summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-17 16:44:52 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-20 14:31:08 +0200
commitc04aa7a89f5bbb5a4657c92a7748c4f41984c4e3 (patch)
tree299bdd7869b81c551b386a968c99bfcad769d8ee /include
parentfb0d12c6b39410bb7812e8b764fa0aa9dfd96049 (diff)
downloadmupdf-c04aa7a89f5bbb5a4657c92a7748c4f41984c4e3.tar.xz
Add images based on display lists.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/display-list.h12
-rw-r--r--include/mupdf/fitz/image.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/include/mupdf/fitz/display-list.h b/include/mupdf/fitz/display-list.h
index dc8b9ecb..a7765245 100644
--- a/include/mupdf/fitz/display-list.h
+++ b/include/mupdf/fitz/display-list.h
@@ -93,4 +93,16 @@ void fz_drop_display_list(fz_context *ctx, fz_display_list *list);
*/
fz_rect *fz_bound_display_list(fz_context *ctx, fz_display_list *list, fz_rect *bounds);
+/*
+ Create a new image from a display list.
+
+ w, h: The conceptual width/height of the image.
+
+ transform: The matrix that needs to be applied to the given
+ list to make it render to the unit square.
+
+ list: The display list.
+*/
+fz_image *fz_new_image_from_display_list(fz_context *ctx, float w, float h, fz_display_list *list);
+
#endif
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h
index 96434d35..255337ee 100644
--- a/include/mupdf/fitz/image.h
+++ b/include/mupdf/fitz/image.h
@@ -86,6 +86,7 @@ struct fz_image_s
unsigned int use_colorkey:1;
unsigned int invert_cmyk_jpeg:1;
unsigned int decoded:1;
+ unsigned int scalable:1;
fz_image *mask;
int xres; /* As given in the image, not necessarily as rendered */
int yres; /* As given in the image, not necessarily as rendered */