diff options
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]; |