|
| int | fz_lookup_blendmode (const char *name) |
| const char * | fz_blendmode_name (int blendmode) |
| fz_function * | fz_new_function_of_size (fz_context *ctx, int size, size_t size2, int m, int n, fz_function_eval_fn *eval, fz_store_drop_fn *drop) |
| void | fz_eval_function (fz_context *ctx, fz_function *func, const float *in, int inlen, float *out, int outlen) |
| fz_function * | fz_keep_function (fz_context *ctx, fz_function *func) |
| void | fz_drop_function (fz_context *ctx, fz_function *func) |
| size_t | fz_function_size (fz_context *ctx, fz_function *func) |
| const char * | fz_structure_to_string (fz_structure type) |
| fz_structure | fz_structure_from_string (const char *str) |
| void | fz_fill_path (fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, fz_matrix ctm, fz_colorspace *colorspace, const float *color, float alpha, fz_color_params color_params) |
| void | fz_stroke_path (fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *stroke, fz_matrix ctm, fz_colorspace *colorspace, const float *color, float alpha, fz_color_params color_params) |
| void | fz_clip_path (fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, fz_matrix ctm, fz_rect scissor) |
| void | fz_clip_stroke_path (fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *stroke, fz_matrix ctm, fz_rect scissor) |
| void | fz_fill_text (fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm, fz_colorspace *colorspace, const float *color, float alpha, fz_color_params color_params) |
| void | fz_stroke_text (fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, fz_matrix ctm, fz_colorspace *colorspace, const float *color, float alpha, fz_color_params color_params) |
| void | fz_clip_text (fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm, fz_rect scissor) |
| void | fz_clip_stroke_text (fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, fz_matrix ctm, fz_rect scissor) |
| void | fz_ignore_text (fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm) |
| void | fz_pop_clip (fz_context *ctx, fz_device *dev) |
| void | fz_fill_shade (fz_context *ctx, fz_device *dev, fz_shade *shade, fz_matrix ctm, float alpha, fz_color_params color_params) |
| void | fz_fill_image (fz_context *ctx, fz_device *dev, fz_image *image, fz_matrix ctm, float alpha, fz_color_params color_params) |
| void | fz_fill_image_mask (fz_context *ctx, fz_device *dev, fz_image *image, fz_matrix ctm, fz_colorspace *colorspace, const float *color, float alpha, fz_color_params color_params) |
| void | fz_clip_image_mask (fz_context *ctx, fz_device *dev, fz_image *image, fz_matrix ctm, fz_rect scissor) |
| void | fz_begin_mask (fz_context *ctx, fz_device *dev, fz_rect area, int luminosity, fz_colorspace *colorspace, const float *bc, fz_color_params color_params) |
| void | fz_end_mask (fz_context *ctx, fz_device *dev) |
| void | fz_end_mask_tr (fz_context *ctx, fz_device *dev, fz_function *fn) |
| void | fz_begin_group (fz_context *ctx, fz_device *dev, fz_rect area, fz_colorspace *cs, int isolated, int knockout, int blendmode, float alpha) |
| void | fz_end_group (fz_context *ctx, fz_device *dev) |
| void | fz_begin_tile (fz_context *ctx, fz_device *dev, fz_rect area, fz_rect view, float xstep, float ystep, fz_matrix ctm) |
| int | fz_begin_tile_id (fz_context *ctx, fz_device *dev, fz_rect area, fz_rect view, float xstep, float ystep, fz_matrix ctm, int id) |
| int | fz_begin_tile_tid (fz_context *ctx, fz_device *dev, fz_rect area, fz_rect view, float xstep, float ystep, fz_matrix ctm, int id, int doc_id) |
| void | fz_end_tile (fz_context *ctx, fz_device *dev) |
| void | fz_render_flags (fz_context *ctx, fz_device *dev, int set, int clear) |
| void | fz_set_default_colorspaces (fz_context *ctx, fz_device *dev, fz_default_colorspaces *default_cs) |
| void | fz_begin_layer (fz_context *ctx, fz_device *dev, const char *layer_name) |
| void | fz_end_layer (fz_context *ctx, fz_device *dev) |
| void | fz_begin_structure (fz_context *ctx, fz_device *dev, fz_structure standard, const char *raw, int idx) |
| void | fz_end_structure (fz_context *ctx, fz_device *dev) |
| void | fz_begin_metatext (fz_context *ctx, fz_device *dev, fz_metatext meta, const char *text) |
| void | fz_end_metatext (fz_context *ctx, fz_device *dev) |
| fz_device * | fz_new_device_of_size (fz_context *ctx, int size) |
| fz_device * | fz_new_passthrough_device_of_size (fz_context *ctx, fz_device *passthrough, int size) |
| void | fz_close_device (fz_context *ctx, fz_device *dev) |
| void | fz_drop_device (fz_context *ctx, fz_device *dev) |
| fz_device * | fz_keep_device (fz_context *ctx, fz_device *dev) |
| 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) |
| fz_rect | fz_device_current_scissor (fz_context *ctx, fz_device *dev) |
| fz_device * | fz_new_trace_device (fz_context *ctx, fz_output *out) |
| fz_device * | fz_new_xmltext_device (fz_context *ctx, fz_output *out) |
| fz_device * | fz_new_bbox_device (fz_context *ctx, fz_rect *rectp) |
| fz_device * | fz_new_test_device (fz_context *ctx, int *is_color, float threshold, int options, fz_device *passthrough) |
| fz_device * | fz_new_culling_device (fz_context *ctx, fz_device *passthrough, const fz_culling_options *opts) |
| fz_device * | fz_new_culling_device_with_rects (fz_context *ctx, fz_device *passthrough, int n, const fz_rect *rects) |
| fz_device * | fz_new_draw_device (fz_context *ctx, fz_matrix transform, fz_pixmap *dest) |
| fz_device * | fz_new_draw_device_with_bbox (fz_context *ctx, fz_matrix transform, fz_pixmap *dest, const fz_irect *clip) |
| fz_device * | fz_new_draw_device_with_proof (fz_context *ctx, fz_matrix transform, fz_pixmap *dest, fz_colorspace *proof_cs) |
| fz_device * | fz_new_draw_device_with_bbox_proof (fz_context *ctx, fz_matrix transform, fz_pixmap *dest, const fz_irect *clip, fz_colorspace *cs) |
| fz_device * | fz_new_draw_device_type3 (fz_context *ctx, fz_matrix transform, fz_pixmap *dest) |
| void | fz_init_draw_options (fz_context *ctx, fz_draw_options *draw_options) |
| fz_draw_options * | fz_parse_draw_options (fz_context *ctx, fz_draw_options *draw_options, const char *string) |
| void | fz_apply_draw_options (fz_context *ctx, fz_draw_options *draw_options, fz_options *options) |
| fz_device * | fz_new_draw_device_with_options (fz_context *ctx, const fz_draw_options *options, fz_rect mediabox, fz_pixmap **pixmap) |
Create a device to test for features.
Currently only tests for the presence of non-grayscale colors.
is_color: Possible values returned: 0: Definitely greyscale 1: Probably color (all colors were grey, but there were images or shadings in a non grey colorspace). 2: Definitely color
threshold: The difference from grayscale that will be tolerated. Typical values to use are either 0 (be exact) and 0.02 (allow an imperceptible amount of slop).
options: A set of bitfield options, from the FZ_TEST_OPT set.
passthrough: A device to pass all calls through to, or NULL. If set, then the test device can both test and pass through to an underlying device (like, say, the display list device). This means that a display list can be created and at the end we'll know if it's colored or not.
In the absence of a passthrough device, the device will throw an exception to stop page interpretation when color is found.