CRIMP
Artifact [9c39aba005]
Not logged in

Artifact 9c39aba00551f5516110b44eacb7e25d628c044a:


pixel
Tcl_Obj* imageObj

crimp_image*   image;
unsigned char* bytes;
int            length;

crimp_input_any (imageObj, image);

bytes  = image->pixel;
length = image->w * image->h * image->itype->size;

Tcl_SetObjResult (interp, Tcl_NewByteArrayObj (bytes, length));
return TCL_OK;

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