diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-25 17:15:25 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 72c202c98ec708d48d54c21935430a2c733675e7 (patch) | |
tree | 78cba475b3bb79fe3c284dc771e4b970ba42f87f /source/fitz/draw-rasterize.c | |
parent | 89b91112b810a6b29396b8f4e91c8bde92969e0e (diff) | |
download | mupdf-72c202c98ec708d48d54c21935430a2c733675e7.tar.xz |
Overprint support.
Introduce an fz_overprint bitmap (currently just a uint32_t,
but it'll grow to be an array of them if FZ_MAX_COLOR is
increased). Pointers to this are passed into all our
painting routines.
NULL means "Do what you've always done before, with no overprint".
non NULL, means that every set bit means "don't ever alter this
component".
We therefore set the overprint bitmap up according to the input
color/colorspace/colorparams before calling each routine.
Diffstat (limited to 'source/fitz/draw-rasterize.c')
-rw-r--r-- | source/fitz/draw-rasterize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-rasterize.c b/source/fitz/draw-rasterize.c index 63a9d0b2..2e399834 100644 --- a/source/fitz/draw-rasterize.c +++ b/source/fitz/draw-rasterize.c @@ -293,7 +293,7 @@ fz_rasterizer *fz_new_rasterizer(fz_context *ctx, const fz_aa_context *aa) return r; } -void fz_convert_rasterizer(fz_context *ctx, fz_rasterizer *r, int eofill, fz_pixmap *pix, unsigned char *colorbv) +void fz_convert_rasterizer(fz_context *ctx, fz_rasterizer *r, int eofill, fz_pixmap *pix, unsigned char *colorbv, fz_overprint *eop) { fz_irect clip, scissor; fz_irect pixmap_clip; @@ -302,5 +302,5 @@ void fz_convert_rasterizer(fz_context *ctx, fz_rasterizer *r, int eofill, fz_pix return; if (fz_is_empty_irect(fz_intersect_irect(&clip, fz_clip_rasterizer(ctx, r, &scissor)))) return; - r->fns.convert(ctx, r, eofill, &clip, pix, colorbv); + r->fns.convert(ctx, r, eofill, &clip, pix, colorbv, eop); } |