summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/pixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mupdf/fitz/pixmap.h')
-rw-r--r--include/mupdf/fitz/pixmap.h9
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).