summaryrefslogtreecommitdiff
path: root/include/fitz/render.h
blob: 05b7daaf2040bde0cb6724710e22de891ec8add3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
typedef struct fz_renderer_s fz_renderer;

struct fz_renderer_s
{
    fz_colorspace *model;
    fz_glyphcache *cache;
    fz_gel *gel;
    fz_ael *ael;
    fz_irect clip;
    fz_pixmap *tmp;
    fz_pixmap *acc;
    unsigned char r, g, b;
};

fz_error *fz_newrenderer(fz_renderer **gcp, fz_colorspace *pcm, int gcmem);
void fz_droprenderer(fz_renderer *gc);

fz_error *fz_renderover(fz_renderer *gc, fz_overnode *over, fz_matrix ctm);
fz_error *fz_rendermask(fz_renderer *gc, fz_masknode *mask, fz_matrix ctm);
fz_error *fz_rendertransform(fz_renderer *gc, fz_transformnode *xform, fz_matrix ctm);
fz_error *fz_rendertext(fz_renderer *gc, fz_textnode *text, fz_matrix ctm);
fz_error *fz_rendernode(fz_renderer *gc, fz_node *node, fz_matrix ctm);
fz_error *fz_rendertree(fz_pixmap **out, fz_renderer *gc, fz_tree *tree, fz_matrix ctm, fz_irect bbox);