[seam-commits] Seam SVN: r8736 - branches/Seam_2_0/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:27 EDT 2008
Author: dan.j.allen
Date: 2008-08-19 11:03:27 -0400 (Tue, 19 Aug 2008)
New Revision: 8736
Modified:
branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
Log:
JBSEAM-3283
Modified: branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
===================================================================
--- branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-08-19 11:39:08 UTC (rev 8735)
+++ branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-08-19 15:03:27 UTC (rev 8736)
@@ -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