Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » is Label with transparent PNG possible?
is Label with transparent PNG possible? [message #448639] Wed, 12 January 2005 18:02
Eclipse UserFriend
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.
Previous Topic:table drawing question....
Next Topic:Passing out parameters to OleAutomation.invoke()
Goto Forum:
  


Current Time: Sun Apr 11 08:19:37 GMT 2021

Powered by FUDForum. Page generated in 0.01325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top