Author: manaRH
Date: 2008-10-27 11:06:47 -0400 (Mon, 27 Oct 2008)
New Revision: 9440
Modified:
branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
Log:
JBPAPP-1316
Modified:
branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-10-27
15:03:45 UTC (rev 9439)
+++
branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/graphicImage/Image.java 2008-10-27
15:06:47 UTC (rev 9440)
@@ -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);
Show replies by date