From 21b8f3b454732f0a68f66eba223ee8afe754ced1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 17 Jul 2014 16:19:28 +0200 Subject: Add feature testing device, and call it from mudraw with -T flag. Currently only tests for the presence of non-grayscale color. --- include/mupdf/fitz/device.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ -286,6 +286,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. -- cgit v1.2.3