harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-4604) [classlib][awt] Images with BGColor are not drawing
Date Tue, 07 Aug 2007 07:27:59 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko reassigned HARMONY-4604:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][awt] Images with BGColor are not drawing
> ---------------------------------------------------
>
>                 Key: HARMONY-4604
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4604
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>         Attachments: H-4604.patch, Harmony.JPG, RI.JPG
>
>
> Here is simple reproducer:
> import java.awt.*; 
> import java.awt.image.BufferedImage; 
> import java.awt.event.*; 
> import javax.swing.JFrame; 
> public class Test { 
>     public static void main(String[] args) { 
>         final Font font = new Font("Dialog",Font.PLAIN, 12); 
>             JFrame f = new JFrame("Test"){ 
>                 public void paint(Graphics g){ 
>                     Graphics2D g2d = (Graphics2D)g; 
>                     BufferedImage bi = new BufferedImage(200,200,BufferedImage.TYPE_INT_ARGB);

>                     Graphics2D g2 = bi.createGraphics(); 
>                     g2.setFont(font); 
>                     g2.setColor(Color.red); 
>                     g2.fillRect(50,50,100,100); 
>                     g2d.drawImage(bi,0,0, Color.blue, null); 
>                 } 
>             }; 
>              
>             f.setBounds(0, 0, 200, 200); 
>             f.setVisible(true); 
>             f.addWindowListener(new WindowAdapter() { 
>                 public void windowClosing(WindowEvent ev) { 
>                     System.exit(0); 
>                 } 
>             }); 
>         } 
>     } 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message