summaryrefslogtreecommitdiff
path: root/source/fitz/svg-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-15 12:08:37 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-12-15 14:11:10 +0100
commit209046c6faf046e7198cd159c232cfb885c58740 (patch)
treefad1a6499b08131595afefa0420008f69aa353ac /source/fitz/svg-device.c
parent3afdcd7307fd5e68f35c7bb91a4d856499f1df44 (diff)
downloadmupdf-209046c6faf046e7198cd159c232cfb885c58740.tar.xz
Rename fz_output_x to fz_write_pixmap_as_x etc.
Diffstat (limited to 'source/fitz/svg-device.c')
-rw-r--r--source/fitz/svg-device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c
index 879b3bd0..4dd60727 100644
--- a/source/fitz/svg-device.c
+++ b/source/fitz/svg-device.c
@@ -744,7 +744,7 @@ svg_dev_fill_image(fz_context *ctx, fz_device *dev, fz_image *image, const fz_ma
break;
default:
{
- fz_buffer *buf = fz_new_png_from_image(ctx, image, image->w, image->h);
+ fz_buffer *buf = fz_new_buffer_from_image_as_png(ctx, image, image->w, image->h);
fz_printf(ctx, out, "image/png;base64,");
send_data_base64(ctx, out, buf);
fz_drop_buffer(ctx, buf);
@@ -781,7 +781,7 @@ svg_dev_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_ma
fz_try(ctx)
{
fz_paint_shade(ctx, shade, ctm, pix, &bbox);
- buf = fz_new_png_from_pixmap(ctx, pix);
+ buf = fz_new_buffer_from_pixmap_as_png(ctx, pix);
if (alpha != 1.0f)
fz_printf(ctx, out, "<g opacity=\"%g\">", alpha);
fz_printf(ctx, out, "<image x=\"%dpx\" y=\"%dpx\" width=\"%dpx\" height=\"%dpx\" xlink:href=\"data:image/png;base64,", pix->x, pix->y, pix->w, pix->h);
@@ -831,7 +831,7 @@ fz_colorspace *colorspace, float *color, float alpha)
break;
default:
{
- fz_buffer *buf = fz_new_png_from_image(ctx, image, image->w, image->h);
+ fz_buffer *buf = fz_new_buffer_from_image_as_png(ctx, image, image->w, image->h);
fz_printf(ctx, out, "image/png;base64,");
send_data_base64(ctx, out, buf);
fz_drop_buffer(ctx, buf);
@@ -875,7 +875,7 @@ svg_dev_clip_image_mask(fz_context *ctx, fz_device *dev, fz_image *image, const
break;
default:
{
- fz_buffer *buf = fz_new_png_from_image(ctx, image, image->w, image->h);
+ fz_buffer *buf = fz_new_buffer_from_image_as_png(ctx, image, image->w, image->h);
fz_printf(ctx, out, "image/png;base64,");
send_data_base64(ctx, out, buf);
fz_drop_buffer(ctx, buf);