diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-08-02 12:11:03 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 5ca92b5a7166cb0304f9d30d0989b5379c7fa532 (patch) | |
tree | 13e8cd576815154304b34ed51f30f15bc4c02ab6 /include | |
parent | 874cd7a3b8b803702f1d6ccb8c674e8662002e9b (diff) | |
download | mupdf-5ca92b5a7166cb0304f9d30d0989b5379c7fa532.tar.xz |
Fix overprint with shadings.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/pixmap.h | 1 | ||||
-rw-r--r-- | include/mupdf/fitz/shade.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index 4fc84b48..a555a046 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -16,6 +16,7 @@ */ typedef struct fz_pixmap_s fz_pixmap; +typedef struct fz_overprint_s fz_overprint; /* fz_pixmap_bbox: Return the bounding box for a pixmap. diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h index f95a4afc..1a9a174d 100644 --- a/include/mupdf/fitz/shade.h +++ b/include/mupdf/fitz/shade.h @@ -132,8 +132,10 @@ fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, bbox: Pointer to a bounding box to limit the rendering of the shade. + + op: NULL, or pointer to overprint bitmap. */ -void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, fz_colorspace *prf, const fz_color_params *color_params, const fz_irect *bbox); +void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, fz_colorspace *prf, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op); /* * Handy routine for processing mesh based shades |