summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-10 16:09:13 +0000
committerRobin Watts <robin@ghostscript.com>2012-01-10 18:07:12 +0000
commit6019356f6efd8d71bba7843de4262322529dfcae (patch)
tree7694aab04c67acaa3110aa6b29fb24441066378a /fitz/fitz.h
parent7d920025a2eaca1ec879d2e78b46576ca3351cc9 (diff)
downloadmupdf-6019356f6efd8d71bba7843de4262322529dfcae.tar.xz
Add fz_blend_pixel_function.
Inspired by Sumatras gdi devices need for such a function expose the blending functions. Note that we produce unsigned char's where Zenikos original produces ints, but it's otherwise identical. This requires us to make various knockon changes throughout the code from int to unsigned char, none of which should make any difference at all - I hope! We reserve the right to change/amend this function in future to operate on blocks of pixels (or pixels in different colorspaces) (or anything else we think of) in future.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 1f971cd3..73017e2f 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -1405,6 +1405,7 @@ void fz_paint_pixmap_with_mask(fz_pixmap *dst, fz_pixmap *src, fz_pixmap *msk);
void fz_paint_pixmap_with_rect(fz_pixmap *dst, fz_pixmap *src, int alpha, fz_bbox bbox);
void fz_blend_pixmap(fz_pixmap *dst, fz_pixmap *src, int alpha, int blendmode, int isolated, fz_pixmap *shape);
+void fz_blend_pixel(unsigned char dp[3], unsigned char bp[3], unsigned char sp[3], int blendmode);
enum
{