/* gdImageWBMP */ BGD_DECLARE(void) gdImageWBMP(gdImagePtr im, int fg, FILE *outFile) { gdIOCtx *out = gdNewFileCtx(outFile); if (out == NULL) return; gdImageWBMPCtx(im, fg, out); out->gd_free(out); }
gdImageWBMPPtr (gdImagePtr im, int *size, int fg) { void *rv; gdIOCtx *out = gdNewDynamicCtx (2048, NULL); gdImageWBMPCtx (im, fg, out); rv = gdDPExtractData (out, size); out->gd_free (out); return rv; }
/* gdImageWBMP ** ----------- */ void gdImageWBMP (gdImagePtr im, int fg, FILE * outFile) { gdIOCtx *out = gdNewFileCtx(outFile); gdImageWBMPCtx(im, fg, out); out->gd_free(out); }
void graphicsGdImageWriteAsWBMP(gdImage *im, int fg, ScmPort *port) { CALL_WITH_OCTX(port, gdImageWBMPCtx(im, fg, ctx), graphicsGdImageWriteAsWBMP); }