is Label with transparent PNG possible? [message #448639] |
Wed, 12 January 2005 18:02 |
Eclipse User |
|
|
|
Originally posted by: dostick.gmail.com
I am using latest, 3.1 M4.
Trying to display PNG with transparency in Label.
Using Label.setImage(); image is drawn with back background instead of
transparency.
And when same image is used with Composite.setBackground() it is drawn
with transparency correctly.
Image img = getImageRegistry().get("image.png");
form.setBackgroundImage(img);
Label imgLabel=new Label(form.getBody(),SWT.NONE);
imgLabel.setImage(img);
- as result two instances of same image displayed, first is correct,
second has black background.
I only need PNG image to be drawn with transparency in Composite/Form.
Maybe I can use something else but Label?
Any solutions/workarounds?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02906 seconds