示例#1
0
文件: gd_jpeg.c 项目: ebichu/dd-wrt
BGD_DECLARE(void) gdImageJpeg(gdImagePtr im, FILE *outFile, int quality)
{
	gdIOCtx *out = gdNewFileCtx(outFile);
	if (out == NULL) return;
	gdImageJpegCtx(im, out, quality);
	out->gd_free(out);
}
示例#2
0
BGD_DECLARE(void *) gdImageJpegPtr (gdImagePtr im, int *size, int quality)
{
  void *rv;
  gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
  gdImageJpegCtx (im, out, quality);
  rv = gdDPExtractData (out, size);
  out->gd_free (out);
  return rv;
}
示例#3
0
void
graphicsGdImageWriteAsJpeg(gdImage *im, ScmPort *port, int quality)
{
#ifdef GD_JPEG
  CALL_WITH_OCTX(port, gdImageJpegCtx(im, ctx, quality), graphicsGdImageWriteAsJpeg);
#else
  graphicsGdRaiseCondition("unsupported format: %s", "Jpeg");
#endif /* GD_JPEG */
}
示例#4
0
文件: gd_jpeg.c 项目: 0x1111/php-src
void gdImageJpeg (gdImagePtr im, FILE * outFile, int quality)
{
	gdIOCtx *out = gdNewFileCtx (outFile);
	gdImageJpegCtx (im, out, quality);
	out->gd_free (out);
}