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/stext-output.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/stext-output.c')
-rw-r--r-- | source/fitz/stext-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |