From 61de1fe7e510fdd425686c478439209f6f7a4b73 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 20 Aug 2014 11:33:55 +0200 Subject: Add full-page color tinting option and key binding to X11 viewer. win32 supports tinting, but cannot change the color from the default. --- include/mupdf/fitz/pixmap.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 @@ -191,6 +191,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 -- cgit v1.2.3