summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-07-17 16:19:28 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-07-17 16:19:28 +0200
commit21b8f3b454732f0a68f66eba223ee8afe754ced1 (patch)
treea70a8402c7ac9cb78796980d1abbacfa8673aa7e /include
parent2a1a79c623636c8cf47a96ca8424174a9283aa10 (diff)
downloadmupdf-21b8f3b454732f0a68f66eba223ee8afe754ced1.tar.xz
Add feature testing device, and call it from mudraw with -T flag.
Currently only tests for the presence of non-grayscale color.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index 25959424..18dc4881 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -287,6 +287,13 @@ fz_device *fz_new_trace_device(fz_context *ctx);
fz_device *fz_new_bbox_device(fz_context *ctx, fz_rect *rectp);
/*
+ fz_new_test_device: Create a device to test for features.
+
+ Currently only tests for the presence of non-grayscale colors.
+*/
+fz_device *fz_new_test_device(fz_context *ctx, int *iscolor);
+
+/*
fz_new_draw_device: Create a device to draw on a pixmap.
dest: Target pixmap for the draw device. See fz_new_pixmap*