From f7098ecf6d5fccf6b3283d497e3c9b1f14470e1e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 10 Oct 2013 10:26:48 +0100 Subject: 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). --- source/fitz/stext-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/stext-output.c') diff --git a/source/fitz/stext-output.c b/source/fitz/stext-output.c index d3241131..6ed595fc 100644 --- a/source/fitz/stext-output.c +++ b/source/fitz/stext-output.c @@ -258,7 +258,7 @@ fz_print_text_page_html(fz_context *ctx, fz_output *out, fz_text_page *page) break; default: { - fz_buffer *buf = fz_image_as_png(ctx, image->image, image->image->w, image->image->h); + fz_buffer *buf = fz_new_png_from_image(ctx, image->image, image->image->w, image->image->h); fz_printf(out, "image/png;base64,"); send_data_base64(out, buf); fz_drop_buffer(ctx, buf); -- cgit v1.2.3