Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » converting swt to awt image transparency problem
converting swt to awt image transparency problem [message #455154] Sat, 07 May 2005 17:31 Go to next message
Eclipse User
Originally posted by: jan.van-oosterom.demon.nl

Hi,

When I convert a icon frow SWT to AWT the transparency is lost
anybody a solution?

I used the code from this snippet:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet156.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

available from:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets
(convert between SWT Image and AWT BufferedImage)

I changed the main method with this code to read a icon from my system
(icon for .torrent files).

Program program = Program.findProgram("torrent");
ImageData data = null;
if (program != null) {
ImageData imageData = program.getImageData();
if (imageData != null) {
data = imageData;
}
}

bye,
Jan
Re: converting swt to awt image transparency problem [message #455288 is a reply to message #455154] Wed, 11 May 2005 11:54 Go to previous messageGo to next message
Eclipse User
Originally posted by: jan.van-oosterom.demon.nl

nevermind, got around it
Re: converting swt to awt image transparency problem [message #759278 is a reply to message #455288] Mon, 28 November 2011 08:59 Go to previous message
Viorel Hojda is currently offline Viorel Hojda
Messages: 10
Registered: July 2009
Junior Member
Hello. Can you tell me please, you got around it by implementing it in some other way (not converting SWT to AWT image) or you found a solution to this?

Thanks !
Previous Topic:Display#loadFont on gtk-linux
Next Topic:modifying ImageData on server ( headless mode)
Goto Forum:
  


Current Time: Thu Oct 23 04:44:19 GMT 2014

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

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