summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-01 17:10:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-09 14:02:19 +0200
commit09d3d93b4e3d8951bf958f2404ee27b5a0769cb9 (patch)
tree668941dbbcb6b9e5a1525aa9f4a08b08a16cea39 /include
parent72e05eaace2fdb3b118b57f6d331054127c46fc5 (diff)
downloadmupdf-09d3d93b4e3d8951bf958f2404ee27b5a0769cb9.tar.xz
Render shadings to images in stext-device.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/device.h5
-rw-r--r--include/mupdf/fitz/pixmap.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index afbd8563..0198a3e6 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -181,6 +181,11 @@ void fz_enable_device_hints(fz_context *ctx, fz_device *dev, int hints);
*/
void fz_disable_device_hints(fz_context *ctx, fz_device *dev, int hints);
+/*
+ Find current scissor region as tracked by the device.
+*/
+const fz_rect *fz_device_current_scissor(fz_context *ctx, fz_device *dev);
+
enum
{
/* Hints */
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h
index 16217578..533ff735 100644
--- a/include/mupdf/fitz/pixmap.h
+++ b/include/mupdf/fitz/pixmap.h
@@ -219,6 +219,11 @@ void fz_set_pixmap_resolution(fz_context *ctx, fz_pixmap *pix, int xres, int yre
void fz_clear_pixmap_with_value(fz_context *ctx, fz_pixmap *pix, int value);
/*
+ Fill pixmap with solid color.
+*/
+void fz_fill_pixmap_with_color(fz_context *ctx, fz_pixmap *pix, fz_colorspace *colorspace, float *color, const fz_color_params *color_params);
+
+/*
fz_clear_pixmap_with_value: Clears a subrect of a pixmap with the given value.
pix: The pixmap to clear.