harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4700) [classlib][awt] unable to draw a GIF image through Windows Remote Desktop
Date Fri, 31 Aug 2007 08:18:32 GMT
[classlib][awt] unable to draw a GIF image through Windows Remote Desktop
-------------------------------------------------------------------------

                 Key: HARMONY-4700
                 URL: https://issues.apache.org/jira/browse/HARMONY-4700
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Win 2003 + remote desktop
            Reporter: Andrey Pavlenko


The following test demonstrates that drawing of GIF images through remote desktop does not
work. JPEG and PNG images works fine.

import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;

public class Test {

	public static void main(String[] args) throws Exception {
		final Image gif = Toolkit.getDefaultToolkit().createImage("test.gif");
		final Image jpg = Toolkit.getDefaultToolkit().createImage("test.jpg");
		final Image png = Toolkit.getDefaultToolkit().createImage("test.png");
		final Frame f = new Frame() {
			@Override
			public void paint(final Graphics g) {
				g.drawImage(gif, 40, 30, this);
				g.drawImage(jpg, 40, 90, this);
				g.drawImage(png, 40, 150, this);
			}
		};

		final MediaTracker tracker = new MediaTracker(f);

		tracker.addImage(gif, 1);
		tracker.addImage(jpg, 2);
		tracker.addImage(png, 3);
		tracker.waitForAll();

		f.setSize(200, 220);
		f.setVisible(true);
	}
}


-- 
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