summaryrefslogtreecommitdiff
path: root/include/fitz/shade.h
blob: c8a47ffdacb55cf5691e1e095a0bbce0be001424 (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
25
26
27
typedef struct fz_shade_s fz_shade;

struct fz_shade_s
{
	int refs;
	fz_colorspace *cs;
	fz_obj *background;
	fz_rect *bbox;
	int antialias;

	int type;
	fz_obj *coords;
	fz_obj *domain;
	fz_matrix matrix;
	fz_matrix matrix2;
	void *function;
	fz_obj *extend;

	/* ... */
};

fz_shade *fz_keepshade(fz_shade *shade);
void fz_dropshade(fz_shade *shade);

fz_rect fz_boundshade(fz_shade *shade, fz_matrix ctm);
fz_error *fz_rendershade(fz_shade *shade, fz_matrix ctm, fz_colorspace *dsts, fz_pixmap *dstp, int over);