java Programming Glossary: alphacomposite.src
Quality of Image after resize very low — Java http://stackoverflow.com/questions/14115950/quality-of-image-after-resize-very-low-java g.fillRect 0 0 whiteSpace whiteSpace g.setComposite AlphaComposite.Src g.setRenderingHint RenderingHints.KEY_INTERPOLATION RenderingHints.VALUE_INTERPOLATION_BILINEAR..
Re-paint problem on translucent frame/panel/component http://stackoverflow.com/questions/2163544/re-paint-problem-on-translucent-frame-panel-component AlphaComposite.Clear g2d.fillRect 0 0 w h g2d.setComposite AlphaComposite.Src g2d.setPaint g2d.getBackground g2d.fillRect 0 0 w h renderTime.. time.getWidth 2 int h2 time.getHeight 2 g2d.setComposite AlphaComposite.SrcOver g2d.drawImage time w 2 w2 h 2 h2 null private void renderTime.. timeG.fillRect 0 0 w h timeG.setComposite AlphaComposite.Src timeG.setPaint Color.green timeG.drawString s 0 fm.getAscent..
Resize an image in Java - Any Open Source Library? http://stackoverflow.com/questions/244164/resize-an-image-in-java-any-open-source-library g scaledBI.createGraphics if preserveAlpha g.setComposite AlphaComposite.Src g.drawImage originalImage 0 0 scaledWidth scaledHeight null..
How to make a rounded corner image in Java http://stackoverflow.com/questions/7603400/how-to-make-a-rounded-corner-image-in-java opaque white with antialiasing enabled... g2.setComposite AlphaComposite.Src g2.setRenderingHint RenderingHints.KEY_ANTIALIASING RenderingHints.VALUE_ANTIALIAS_ON.. the white shape from above as alpha source g2.setComposite AlphaComposite.SrcAtop g2.drawImage image 0 0 null g2.dispose return output Here's..
Java - opaque color http://stackoverflow.com/questions/7823631/java-opaque-color Addendum Here's an example that shows how one might use AlphaComposite.Src mode for this. import javax.swing. import java.awt. import java.awt.geom... Color.red g2.draw line1 if src g2.setComposite AlphaComposite.Src g2.setColor Color.blue g2.draw line2 public static void main..
|