Author: jeremias
Date: Mon Feb  7 08:36:51 2011
New Revision: 1067879

URL: http://svn.apache.org/viewvc?rev=1067879&view=rev
Log:
Bugfix: toBufferedImage() didn't actually transfer the image data at all.

Modified:
    
xmlgraphics/fop/trunk/src/java/org/apache/fop/util/bitmap/BitmapImageUtil.java

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/util/bitmap/BitmapImageUtil.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/bitmap/BitmapImageUtil.java?rev=1067879&r1=1067878&r2=1067879&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/util/bitmap/BitmapImageUtil.java 
(original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/util/bitmap/BitmapImageUtil.java 
Mon Feb  7 08:36:51 2011
@@ -213,7 +213,9 @@ public final class BitmapImageUtil {
             WritableRaster wr = 
img.getColorModel().createCompatibleWritableRaster(
                     img.getWidth(), img.getHeight());
             boolean premult = img.getColorModel().isAlphaPremultiplied();
-            return new BufferedImage(img.getColorModel(), wr, premult, null);
+            BufferedImage buf = new BufferedImage(img.getColorModel(), wr, 
premult, null);
+            transferImage(img, buf);
+            return buf;
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to