CRIMP
Artifact [adf1de054a]
Not logged in

Artifact adf1de054a5fc0051185642e0e5a6f83e5dc2b21:


expand_grey32_const
Tcl_Obj* imageObj
int ww
int hn
int we
int hs
int value

/*
 * Border expansion by constant pixel value.
 */

crimp_image* image;
crimp_input (imageObj, image, grey32);

#define FILL(xo,yo) {			\
	GREY32 (result, xo, yo) = value; \
    }

#define COPY(xo,yo,xi,yi) {				\
	GREY32 (result, xo, yo) = GREY32 (image, xi, yi); \
    }

#include <expand_op.c>

/* vim: set sts=4 sw=4 tw=80 et ft=c: */
/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 78
 * End:
 */