From 09d3d93b4e3d8951bf958f2404ee27b5a0769cb9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 1 Aug 2017 17:10:02 +0200 Subject: Render shadings to images in stext-device. --- include/mupdf/fitz/device.h | 5 +++++ include/mupdf/fitz/pixmap.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include') 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 @@ -218,6 +218,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. -- cgit v1.2.3