harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor V. Stolyarov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4700) [classlib][awt] unable to draw a GIF image through Windows Remote Desktop
Date Mon, 03 Sep 2007 09:23:19 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524479
] 

Igor V. Stolyarov commented on HARMONY-4700:
--------------------------------------------

This issue reproduced not only Remote Desktop, but and locally too, if set 16 bit Desktop
Resolution. Cause of issue is  in AlphaBlend function, which can't blitting not 32 depth src
Bitmap.

> [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
>         Attachments: test.jar
>
>
> 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