Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 97050

Summary: [Widgets] Icons with semi transparent pixels not shown correct when ALT+TAB
Product: [Eclipse Project] Platform Reporter: Harry Hornreich <harryhorn>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: normal    
Priority: P3 CC: snorthov
Version: 3.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Icon file that shows the problem. See black lines around icon when ALT+TAB
none
screenshot
none
screenshot 2 none

Description Harry Hornreich CLA 2005-05-27 14:27:18 EDT
I am using 3.1 M7. I added to a shell images using setImages(). The images 
were created from different sized icons with semi-transparent pixels in them. 
The icon on the window itself (top left) displays fine. However, when I 
ALT+TAB between the windows applications I see that the icon image displayed 
to select the active applications shows black instead of the semi-transparent 
pixels in the image. My guess is that SWT is not passing correctly the 
information to the OS in this case. The image itself looks fine on windows 
itself as an .ico file so I do not think this is a graphics issue.
Comment 1 Steve Northover CLA 2005-05-30 13:03:25 EDT
Can you attach the images please?  Thanks.
Comment 2 Harry Hornreich CLA 2005-05-30 19:21:34 EDT
Created attachment 21998 [details]
Icon file that shows the problem. See black lines around icon when ALT+TAB
Comment 3 Felipe Heidrich CLA 2005-06-03 18:31:27 EDT
Created attachment 22376 [details]
screenshot

I ain't sure I'm seeing the problem you described. Please, check the screenshot
I attached. Does it show the problem ?
Comment 4 Felipe Heidrich CLA 2005-06-03 18:32:22 EDT
That is how I loaded the image and set it in the shell:
Image icon = new Image (display, PR97046.class.getResourceAsStream
("sample2.ico"));
shell.setImage(icon);


Comment 5 Steve Northover CLA 2005-06-06 10:09:58 EDT
Felipe, did you try multiple images using Shell.setImages()?  Have you tried 
both with and without the XP manifest?
Comment 6 Felipe Heidrich CLA 2005-06-06 10:45:07 EDT
Created attachment 22422 [details]
screenshot 2

Harry, is this what you are getting ?

Steve, yes, I tested all these scenarios.
Comment 7 Felipe Heidrich CLA 2005-06-06 11:56:19 EDT
Try to open sample2.ico using IE, does IE shows the icon wrong too ?
wrong == thick black border around the ballon.

To reproduce this problem I had to lower the depth of my display from 32bit to 
16bit (didn't test 24).
Comment 8 Felipe Heidrich CLA 2005-06-07 17:46:50 EDT
This fails on IE. The icon depth is more than the depth of display.
You can detect this case in your code using:
ImageData data = new ImageData (PR97050.class.getResourceAsStream
("sample2.ico"));
if (data.depth > display.getIconDepth())  {
	System.out.println("BAD icon " +data.depth + " display only " + 
display.getIconDepth());
}

I just won't close this bug cause I believe this can be fixed on Windows XP, 
but not in time for Eclipse 3.1
Comment 9 Felipe Heidrich CLA 2009-08-19 12:21:03 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 10 Leo Ufimtsev CLA 2017-08-03 12:33:43 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 11 Eclipse Genie CLA 2020-08-11 14:06:30 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.