diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-20 20:04:17 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-09-12 14:32:33 +0100 |
commit | f8c8454125598ec0dd7e5f7224f0b7da90df86da (patch) | |
tree | 702e016b53f474f53620983d3c2dcc71d2072419 /include | |
parent | fd176d8420adbfdff53c0b85187f418cfba5925a (diff) | |
download | mupdf-f8c8454125598ec0dd7e5f7224f0b7da90df86da.tar.xz |
Fix Gradients in the presence of spots.
Incorporates fixes from Michael: When dealing with spot colors, if the
destination space is pure CMYK and we have unsupported spots we can
do a weighted addition of the spot CMYK colorant like Adobe does
in the PSD image format. If the destination space is RGB we need
to do a traditional color mapping of each pixel.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/shade.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h index d732b9bc..f95a4afc 100644 --- a/include/mupdf/fitz/shade.h +++ b/include/mupdf/fitz/shade.h @@ -39,6 +39,11 @@ typedef struct fz_shade_s int use_background; /* background color for fills but not 'sh' */ float background[FZ_MAX_COLORS]; + /* Just to be confusing, PDF Shadings of Type 1 (Function Based + * Shadings), do NOT use_function, but all the others do. This + * is because Type 1 shadings take 2 inputs, whereas all the + * others (when used with a function take 1 input. The type 1 + * data is in the 'f' field of the union below. */ int use_function; float function[256][FZ_MAX_COLORS + 1]; |