Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 6326 invoked from network); 30 Oct 2007 15:12:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 15:12:23 -0000 Received: (qmail 58889 invoked by uid 500); 30 Oct 2007 15:12:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 58873 invoked by uid 500); 30 Oct 2007 15:12:01 -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 58850 invoked by uid 99); 30 Oct 2007 15:12:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 08:12:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 15:12:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CAD7F714204 for ; Tue, 30 Oct 2007 08:11:50 -0700 (PDT) Message-ID: <29465792.1193757110828.JavaMail.jira@brutus> Date: Tue, 30 Oct 2007 08:11:50 -0700 (PDT) From: "Igor V. Stolyarov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5044) [classlib][awt] Drawing Images with Affine Transformation on BufferedIame works incorrectly. In-Reply-To: <13452551.1193757110613.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Igor V. Stolyarov updated HARMONY-5044: --------------------------------------- Attachment: Harmony.JPG RI.JPG > [classlib][awt] Drawing Images with Affine Transformation on BufferedIame works incorrectly. > -------------------------------------------------------------------------------------------- > > Key: HARMONY-5044 > URL: https://issues.apache.org/jira/browse/HARMONY-5044 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Igor V. Stolyarov > Attachments: Harmony.JPG, RI.JPG > > > Drawing Images with Affine Transformation on BufferedIame works incorrectly > Simple reproducer: > import java.io.*; > import java.awt.*; > import java.awt.geom.*; > import java.awt.image.*; > import javax.swing.*; > public class TransformTest extends JFrame { > public BufferedImage im1, im2; > public static void main(String[] args){ > TransformTest aTest = new TransformTest(); > aTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > aTest.setSize(400, 300); > aTest.setVisible(true); > } > public TransformTest(){ > im1 = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB); > im2 = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB); > } > public void paint(Graphics g){ > Graphics2D _g2d = im2.createGraphics(); > _g2d.setColor(new Color(255, 0, 0, 127)); > _g2d.fillRect(0, 0, 100, 100); > Graphics2D g2d = im1.createGraphics(); > g2d.setColor(Color.white); > g2d.fillRect(0, 0, 200, 200); > AffineTransform at = new AffineTransform(); > at.setToRotation(Math.PI/4); > g2d.setTransform(at); > g2d.drawImage(im2, 50, 50, null); > g.drawImage(im1, 30, 30, null); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.