summaryrefslogtreecommitdiff
path: root/include/mupdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-13 13:27:30 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-13 21:27:06 +0100
commitb35df4b2ae4a80c8f770335b813e5cd3203c175b (patch)
tree9ed6b381d3aa039cfb94613b9b7162cb49602520 /include/mupdf
parent9a8a3fe5e1d3e319559fd0bde2bc40bc47ee01bd (diff)
downloadmupdf-b35df4b2ae4a80c8f770335b813e5cd3203c175b.tar.xz
Use fz_image.imagemask field when adding PDF image resources.
Don't pass the information as a separate argument.
Diffstat (limited to 'include/mupdf')
-rw-r--r--include/mupdf/fitz/image.h3
-rw-r--r--include/mupdf/pdf/resource.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/include/mupdf/fitz/image.h b/include/mupdf/fitz/image.h
index 8c5e7d62..6dfd6c9b 100644
--- a/include/mupdf/fitz/image.h
+++ b/include/mupdf/fitz/image.h
@@ -185,8 +185,7 @@ fz_image *fz_new_image_of_size(fz_context *ctx,
interpolate: 1 if interpolation should be used when decoding
this image, 0 otherwise.
- imagemask: 1 if this is an imagemask (i.e. transparent), 0
- otherwise.
+ imagemask: 1 if this is an imagemask (i.e. transparency bitmap mask), 0 otherwise.
decode: NULL, or a pointer to to a decode array. The default
decode array is [0 1] (repeated n times, for n color components).
diff --git a/include/mupdf/pdf/resource.h b/include/mupdf/pdf/resource.h
index d8968996..85a37641 100644
--- a/include/mupdf/pdf/resource.h
+++ b/include/mupdf/pdf/resource.h
@@ -49,7 +49,7 @@ int pdf_is_jpx_image(fz_context *ctx, pdf_obj *dict);
fz_image *pdf_load_image(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
-pdf_obj *pdf_add_image(fz_context *ctx, pdf_document *doc, fz_image *image, int mask);
+pdf_obj *pdf_add_image(fz_context *ctx, pdf_document *doc, fz_image *image);
/*
* Pattern