Harmony
  1. Harmony
  2. HARMONY-4741

[classlib][awt] Graphics XORMode drawing doesn't implemented

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Graphics XORMode drawing doesn't implemented

      Simple reproducer:

      import java.awt.*;
      import java.awt.image.BufferedImage;
      import java.awt.event.*;

      import javax.swing.JFrame;

      public class XORModeTest {
      public static void main(String[] args) {
      final Font font = new Font("Dialog",Font.PLAIN, 12);

      JFrame f = new JFrame("XORModeTest"){
      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.green); g2.fillRect(30, 30, 100, 100); g2.setColor(Color.red); g2.drawString("Test", 50, 80); g2d.setXORMode(Color.blue); g2d.drawImage(bi,0,0,null); }


      };

      f.setBounds(0, 0, 300, 300);
      f.setVisible(true);
      f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent ev)

      { System.exit(0); }


      });
      }
      }

      1. H-4741.patch
        41 kB
        Igor V. Stolyarov
      2. H-4741-1.patch
        40 kB
        Igor V. Stolyarov
      3. Harmony.JPG
        6 kB
        Igor V. Stolyarov
      4. RI.JPG
        7 kB
        Igor V. Stolyarov

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Alexey Petrenko
              Reporter:
              Igor V. Stolyarov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development