pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1527335 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java
Date Sun, 29 Sep 2013 15:27:29 GMT
Author: lehmi
Date: Sun Sep 29 15:27:29 2013
New Revision: 1527335

URL: http://svn.apache.org/r1527335
Log:
PDFBOX-1730: use the correct image type as default value

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java?rev=1527335&r1=1527334&r2=1527335&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/RenderUtil.java Sun Sep 29 15:27:29
2013
@@ -30,7 +30,7 @@ import org.apache.pdfbox.pdmodel.PDPagea
 import org.apache.pdfbox.pdmodel.common.PDRectangle;
 
 /**
- * RenderUtil contains some convenience methods to print or draw a single page of a document.
+ * RenderUtil provides some convenience methods to print or draw a single page of a document.
  * 
  */
 public class RenderUtil
@@ -132,7 +132,7 @@ public class RenderUtil
         // the default size is not really good resolution,
         // so create an image that is twice the size
         // and let the client scale it down.
-        return convertToImage(page, BufferedImage.TYPE_USHORT_565_RGB, 2 * PDPage.DEFAULT_USER_SPACE_UNIT_DPI);
+        return convertToImage(page, BufferedImage.TYPE_INT_RGB, 2 * PDPage.DEFAULT_USER_SPACE_UNIT_DPI);
     }
 
     /**



Mime
View raw message