Hi, In my application I'm creating new shape (Area) by subtracting a shape from another one but when I turn on the antialias in rendering I face with a white border around inner object. I'm not using composite because I need to create the shape by subtracting. Is there any solution for this problem? Here is a sample code,
private void drawTest(Graphics2D g2) { g2.setColor(Color.WHITE); g2.fillRect(0, 0, getWidth(), getHeight()); Ellipse2D shape1 = new Ellipse2D.Double(150, 185, 150, 60); Shape shape3 = new Rectangle2D.Double(100, 100, 250, 250); Area area = new Area(shape3); area.subtract(new Area(shape1)); g2.setColor(new Color(86 / 256f, 114 / 256f, 142 / 256f, 1f)); g2.fill(area); g2.setColor(new Color(86 / 256f, 144 / 256f, 182 / 256f, 1f)); g2.fill(shape1); } -- View this message in context: http://www.nabble.com/area.subtract-and-antialias-problem-tp20522961p20522961.html Sent from the Sun - Java2D-Interest mailing list archive at Nabble.com. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".