memimageline,
memimagedraw,
drawclip,
+drawclipnorepl,
memlinebbox,
memlineendsize,
allocmemsubfont,
.PP
.ft L
.nf
-void memimageinit(void)
+int memimageinit(void)
ulong* wordaddr(Memimage *i, Point p)
uchar* byteaddr(Memimage *i, Point p)
void memimagemove(void *from, void *to)
int drawclip(Memimage *dst, Rectangle *dr, Memimage *src,
Point *sp, Memimage *mask, Point *mp,
Rectangle *sr, Rectangle *mr)
+int drawclipnorepl(Memimage *dst, Rectangle *dr, Memimage *src,
+ Point *sp, Memimage *mask, Point *mp,
+ Rectangle *sr, Rectangle *mr)
Rectangle memlinebbox(Point p0, Point p1, int end0, int end1,
int radius)
int memlineendsize(int end)
and
.BR memwhite .
It should be called before referring to any of these images
-and before calling any of the other library functions.
+and before calling any of the other library functions. It
+returns non-zero on error.
.PP
Each
.B Memimage
that contain the beginning of the data for a given pixel.
.PP
.I Allocmemimage
-allocages
+allocates
images with a given rectangle and channel descriptor
(see
.B strtochan
.B sp
and
.BR mp .
+.I Drawclipnorepl
+does the same as
+.B drawclip
+but avoids clamping
+.B sp
+and
+.B mr
+within the image rectangle of source and mask when replicated.
.I Drawclip
-returns zero when the clipped rectangle is empty.
+and
+.I drawclipnorepl
+return zero when the clipped rectangle is empty.
.I Memlinebbox
returns a conservative bounding box containing a line between
two points