diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-08-20 11:33:55 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-08-20 11:33:55 +0200 |
commit | 61de1fe7e510fdd425686c478439209f6f7a4b73 (patch) | |
tree | ef6994ceb17a14e29b5b2dc20e7b5bfc58e0f2dc /include | |
parent | 44efa7e4a451793dd2357a65c92bc47719da1ad2 (diff) | |
download | mupdf-61de1fe7e510fdd425686c478439209f6f7a4b73.tar.xz |
Add full-page color tinting option and key binding to X11 viewer.
win32 supports tinting, but cannot change the color from the default.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/pixmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index 8be72914..800effd0 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -192,6 +192,15 @@ void fz_clear_pixmap(fz_context *ctx, fz_pixmap *pix); void fz_invert_pixmap(fz_context *ctx, fz_pixmap *pix); /* + fz_tint_pixmap: Tint all the pixels in an RGB or Gray pixmap. + + Multiplies all the samples with the input color argument. + + r,g,b: The color to tint with, in 0 to 255 range. +*/ +void fz_tint_pixmap(fz_context *ctx, fz_pixmap *pix, int r, int g, int b); + +/* fz_invert_pixmap: Invert all the pixels in a given rectangle of a pixmap. All components of all pixels in the rectangle are inverted (except alpha, which is unchanged). |