Summary: | Images with transparency alpha added to the Toolbar widget do not render at all on Windows 2000 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | jonathan <jonny.tiu> | ||||
Component: | SWT | Assignee: | Steve Northover <steve_northover> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 3.2.2 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
jonathan
2007-07-12 21:05:59 EDT
Created attachment 73713 [details]
Application to demonstrate the problem
I have attached a test application and an image file (please use this image file) so it will be easy for you to see the issue.
There are two blocks of code you can uncomment. The first one is the image placed on the Button Widget. You can see that it renders fine on Windows 2000 and XP.
If you uncomment and run the second block of code, the image is placed (via an ActionContributionItem) on to a Toolbar widget. It will render on Windows XP but not show up at all on Windows 2000.
SN to simplify the test case change TransImageText.main() to the snippet below, and don't take DummyAction. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Image image = new Image(display, "./back.gif"); ImageData imageData = image.getImageData(); image.dispose(); applyOpacityFilter(imageData); image = new Image(display, imageData); final Button button = new Button(shell, SWT.PUSH); button.setBounds(1, 1, 50, 50); button.setImage(image); // works on win2000 ToolBar bar = new ToolBar(shell, SWT.BORDER); bar.setBounds(100, 100, 100, 100); ToolItem item = new ToolItem(bar, SWT.NONE); item.setImage(image); // does not work on win2000 shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } image.dispose(); display.dispose(); } 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. If you have further information on the current state of the bug, please add it. 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. |