summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-10-16 13:44:52 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:36 +0100
commitc413f4db6a54846ae85393a87fa1b53b93a966ee (patch)
tree3a06363e8f0570cc139e8cf486f2d9b00c0c52cd /include
parentc7c407b57a6e1aa5b1a11034ec7cb308cf4ad3c4 (diff)
downloadmupdf-c413f4db6a54846ae85393a87fa1b53b93a966ee.tar.xz
Add support for use of proofing profile.
This is a first cut to get us to demo-ability. There will likely be a few changes as we do a bit more testing with different scenarios with Gray, RGB, CMYK combos of destination, proof and output intent ICC profiles.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/device.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index 891f3aad..549ae9be 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -339,6 +339,40 @@ fz_device *fz_new_draw_device(fz_context *ctx, const fz_matrix *transform, fz_pi
*/
fz_device *fz_new_draw_device_with_bbox(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest, const fz_irect *clip);
+/*
+ fz_new_draw_device_with_proof: Create a device to draw on a pixmap.
+
+ dest: Target pixmap for the draw device. See fz_new_pixmap*
+ for how to obtain a pixmap. The pixmap is not cleared by the
+ draw device, see fz_clear_pixmap* for how to clear it prior to
+ calling fz_new_draw_device. Free the device by calling
+ fz_drop_device.
+
+ transform: Transform from user space in points to device space in pixels.
+
+ proof_cs: Intermediate color space to map though when mapping to
+ color space defined by pixmap.
+*/
+fz_device *fz_new_draw_device_with_proof(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest, fz_colorspace *proof_cs);
+
+/*
+ fz_new_draw_device_with_bbox_proof: Create a device to draw on a pixmap.
+
+ dest: Target pixmap for the draw device. See fz_new_pixmap*
+ for how to obtain a pixmap. The pixmap is not cleared by the
+ draw device, see fz_clear_pixmap* for how to clear it prior to
+ calling fz_new_draw_device. Free the device by calling
+ fz_drop_device.
+
+ transform: Transform from user space in points to device space in pixels.
+
+ clip: Bounding box to restrict any marking operations of the
+ draw device.
+
+ proof_cs: Color space to render to prior to mapping to color space defined by pixmap.
+*/
+fz_device *fz_new_draw_device_with_bbox_proof(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest, const fz_irect *clip, fz_colorspace *cs);
+
fz_device *fz_new_draw_device_type3(fz_context *ctx, const fz_matrix *transform, fz_pixmap *dest);
/*