summaryrefslogtreecommitdiff
path: root/include/fitz/pixmap.h
blob: 7b8bfb1eca6f3ea507718fd1fcd76dae88b3db01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
typedef struct fz_pixmap_s fz_pixmap;

struct fz_pixmap_s
{
	fz_colorspace *cs;
	int x, y, w, h;
	int n, a;
	int stride;
	unsigned char *samples;
};

fz_error *fz_newpixmap(fz_pixmap **mapp, fz_colorspace *cs, int x, int y, int w, int h, int n, int a);
void fz_debugpixmap(fz_pixmap *map);
void fz_freepixmap(fz_pixmap *map);
void fz_clearpixmap(fz_pixmap *map);
void fz_convertpixmap(fz_pixmap *src, fz_pixmap *dst);

void fz_blendover(fz_pixmap *src, fz_pixmap *dst);
void fz_blendmask(fz_pixmap *dst, fz_pixmap *color, fz_pixmap *shape);