From cf7b2cbbfe6192fbf697237735ab45bc951304e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 23 Jun 2016 12:33:30 +0200 Subject: Update JNI code. Take explicit alpha argument in toPixmap functions. --- platform/java/example/PageCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/java/example/PageCanvas.java') diff --git a/platform/java/example/PageCanvas.java b/platform/java/example/PageCanvas.java index 9de1abdb..11ed1877 100644 --- a/platform/java/example/PageCanvas.java +++ b/platform/java/example/PageCanvas.java @@ -30,7 +30,7 @@ public class PageCanvas extends java.awt.Canvas } public static BufferedImage imageFromPage(Page page, Matrix ctm) { - Pixmap pixmap = page.toPixmap(ctm, ColorSpace.DeviceBGR); + Pixmap pixmap = page.toPixmap(ctm, ColorSpace.DeviceBGR, true); BufferedImage image = imageFromPixmap(pixmap); pixmap.destroy(); return image; -- cgit v1.2.3