blob: d49f41211a1a6b77ffdd73bbd5ec64b91a893a8f (
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
28
|
#include "fitz.h"
fz_shade *
fz_keepshade(fz_shade *shade)
{
shade->refs ++;
return shade;
}
void
fz_dropshade(fz_shade *shade)
{
if (shade && --shade->refs == 0)
{
if (shade->cs)
fz_dropcolorspace(shade->cs);
fz_free(shade->mesh);
fz_free(shade);
}
}
fz_rect
fz_boundshade(fz_shade *shade, fz_matrix ctm)
{
ctm = fz_concat(shade->matrix, ctm);
return fz_transformaabb(ctm, shade->bbox);
}
|