[seam-commits] Seam SVN: r8737 - trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Aug 19 11:03:37 EDT 2008
Author: dan.j.allen
Date: 2008-08-19 11:03:37 -0400 (Tue, 19 Aug 2008)
New Revision: 8737
Modified:
trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
Log:
JBSEAM-3283
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-08-19 15:03:27 UTC (rev 8736)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-08-19 15:03:37 UTC (rev 8737)
@@ -420,6 +420,10 @@
}
Graphics2D graphics2D = image.createGraphics();
graphics2D.setBackground(new Color(255, 255, 255));
+ if (Type.IMAGE_PNG.equals(getContentType()))
+ {
+ graphics2D.setComposite(java.awt.AlphaComposite.Src);
+ }
graphics2D.clearRect(0, 0, image.getWidth(), image.getHeight());
graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
More information about the seam-commits
mailing list