diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-05-11 14:59:09 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-06-13 16:04:20 +0100 |
commit | df4728eb7fae4e6bd9de68632a05e1ba036cee7b (patch) | |
tree | 311284103cb66db0fc6c81f8b007e679842cad63 /source/fitz/draw-imp.h | |
parent | f1386c6778baded82a3b98215264c2613efc7fe7 (diff) | |
download | mupdf-df4728eb7fae4e6bd9de68632a05e1ba036cee7b.tar.xz |
Add edgebuffer based rasterizer
Diffstat (limited to 'source/fitz/draw-imp.h')
-rw-r--r-- | source/fitz/draw-imp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/fitz/draw-imp.h b/source/fitz/draw-imp.h index 5ce1879e..48d0c7f0 100644 --- a/source/fitz/draw-imp.h +++ b/source/fitz/draw-imp.h @@ -316,7 +316,13 @@ void *fz_new_rasterizer_of_size(fz_context *ctx, int size, const fz_rasterizer_f fz_rasterizer *fz_new_gel(fz_context *ctx); +typedef enum +{ + FZ_EDGEBUFFER_ANY_PART_OF_PIXEL, + FZ_EDGEBUFFER_CENTER_OF_PIXEL +} fz_edgebuffer_rule; +fz_rasterizer *fz_new_edgebuffer(fz_context *ctx, fz_edgebuffer_rule rule); int fz_flatten_fill_path(fz_context *ctx, fz_rasterizer *rast, const fz_path *path, const fz_matrix *ctm, float flatness, const fz_irect *irect, fz_irect *bounds); int fz_flatten_stroke_path(fz_context *ctx, fz_rasterizer *rast, const fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, float flatness, float linewidth, const fz_irect *irect, fz_irect *bounds); |