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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include "u.h"
#include "libc.h"
#include "draw.h"
#include "memdraw.h"
Memimage*
allocmemimage(Rectangle r, u32int chan)
{
return _allocmemimage(r, chan);
}
void
freememimage(Memimage *i)
{
_freememimage(i);
}
void
memfillcolor(Memimage *i, u32int val)
{
_memfillcolor(i, val);
}
int
cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
return _cloadmemimage(i, r, data, ndata);
}
void
memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point sp, Memimage *mask, Point mp, int op)
{
Memdrawparam *par;
par = _memimagedrawsetup(dst, r, src, sp, mask, mp, op);
if(par == nil)
return;
_memimagedraw(par);
}
u32int
pixelbits(Memimage *m, Point p)
{
return _pixelbits(m, p);
}
int
loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
return _loadmemimage(i, r, data, ndata);
}
int
unloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
{
return _unloadmemimage(i, r, data, ndata);
}
|