diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2017-08-07 18:57:46 -0700 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:36 +0100 |
commit | 5bc368de9feb7d12c124e2d0712e2d7314420c44 (patch) | |
tree | 9a2841d082ab3133cb6abdfa7bdd932b865782d2 /include | |
parent | 38620dea1512581a65350955cebb1028063ce42b (diff) | |
download | mupdf-5bc368de9feb7d12c124e2d0712e2d7314420c44.tar.xz |
Make sure shades use proper "default" color space.
Fixes some issues in Altona test file.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/shade.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h index 5604e762..24cb4cb2 100644 --- a/include/mupdf/fitz/shade.h +++ b/include/mupdf/fitz/shade.h @@ -122,6 +122,9 @@ fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, shade: The shade to paint. + override_cs: NULL, or colorspace to override the shades + inbuilt colorspace. + ctm: The transform to apply. dest: The pixmap to render into. @@ -133,7 +136,7 @@ fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, op: NULL, or pointer to overprint bitmap. */ -void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op); +void fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_colorspace *override_cs, const fz_matrix *ctm, fz_pixmap *dest, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op); /* * Handy routine for processing mesh based shades |