Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73130 invoked from network); 25 Jun 2009 19:08:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 19:08:21 -0000 Received: (qmail 8950 invoked by uid 500); 25 Jun 2009 19:08:32 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 8923 invoked by uid 500); 25 Jun 2009 19:08:32 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 8914 invoked by uid 99); 25 Jun 2009 19:08:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 19:08:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 19:08:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C71C8234C004 for ; Thu, 25 Jun 2009 12:08:07 -0700 (PDT) Message-ID: <1576704802.1245956887814.JavaMail.jira@brutus> Date: Thu, 25 Jun 2009 12:08:07 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2055) [class][awt] Graphics2D does wrong translation on BufferedImage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-2055. --------------------------------- Closing as the wont-fix resolution makes sense. > [class][awt] Graphics2D does wrong translation on BufferedImage > --------------------------------------------------------------- > > Key: HARMONY-2055 > URL: https://issues.apache.org/jira/browse/HARMONY-2055 > Project: Harmony > Issue Type: Bug > Components: Classlib, Non-bug differences from RI > Reporter: Denis Kishenko > Assignee: Alexey Petrenko > Attachments: HARMONY-2055-actual.PNG, HARMONY-2055-expected.PNG > > > ============= Test ============ > import java.awt.BasicStroke; > import java.awt.Color; > import java.awt.Graphics; > import java.awt.Graphics2D; > import java.awt.event.WindowAdapter; > import java.awt.event.WindowEvent; > import java.awt.geom.AffineTransform; > import java.awt.geom.Line2D; > import java.awt.image.BufferedImage; > import javax.swing.JFrame; > public class bug9145 { > static final boolean SCREEN = false; > > public static void main(String[] args) { > JFrame f = new JFrame("Test") { > > void draw(Graphics g) { > Graphics2D g2 = (Graphics2D)g; > g.setColor(Color.blue); > g2.draw(new Line2D.Float(20, 50, 80, 50)); > g.setColor(Color.red); > g2.setTransform(AffineTransform.getTranslateInstance(5, 10)); > g2.draw(new Line2D.Float(20, 60, 80, 60)); > } > > public void paint(Graphics g) { > if (SCREEN) { > BufferedImage img = new BufferedImage(600, 400, BufferedImage.TYPE_INT_RGB); > draw(img.getGraphics()); > g.drawImage(img, 0, 0, null); > } else { > draw(g); > } > } > }; > f.addWindowListener( > new WindowAdapter() { > public void windowClosing(WindowEvent e) { > System.exit(0); > } > } > ); > f.setSize(100, 150); > f.show(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.