diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-10-10 10:26:48 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-10-10 11:16:52 +0100 |
commit | f7098ecf6d5fccf6b3283d497e3c9b1f14470e1e (patch) | |
tree | 5b7d82dbce877d297210242fa173cb7c40047e01 /source/fitz/svg-device.c | |
parent | 5f83e5ec5c1717117e9ef97f7f3bb23bc1ec9689 (diff) | |
download | mupdf-f7098ecf6d5fccf6b3283d497e3c9b1f14470e1e.tar.xz |
Add fz_new_png_from_pixmap
This accompanies the function formerly known as fz_image_as_png (now
renamed to fz_new_png_from_image).
Diffstat (limited to 'source/fitz/svg-device.c')
-rw-r--r-- | source/fitz/svg-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 11194abc..d76f14b3 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -700,7 +700,7 @@ svg_dev_fill_image(fz_device *dev, fz_image *image, const fz_matrix *ctm, float break; default: { - fz_buffer *buf = fz_image_as_png(ctx, image, image->w, image->h); + fz_buffer *buf = fz_new_png_from_image(ctx, image, image->w, image->h); fz_printf(out, "image/png;base64,"); send_data_base64(out, buf); fz_drop_buffer(ctx, buf); @@ -742,7 +742,7 @@ fz_colorspace *colorspace, float *color, float alpha) break; default: { - fz_buffer *buf = fz_image_as_png(ctx, image, image->w, image->h); + fz_buffer *buf = fz_new_png_from_image(ctx, image, image->w, image->h); fz_printf(out, "image/png;base64,"); send_data_base64(out, buf); fz_drop_buffer(ctx, buf); |