Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Loading an image using GTK on Linux(Looking for hints on extending SWT on a particular platform to use native image loading.)
Loading an image using GTK on Linux [message #791470] Sun, 05 February 2012 16:54 Go to next message
Eclipse UserFriend
I'm looking for information on creating a "fast path" for loading PNG images on a Linux/GTK SWT application. We've looked at the source code and believe that SWT on GTK+ decodes PNG images in Java into ImageData then uses that data to create the underlying GTK image object. We'd like to turn that around and let GTK decode the image.

Before we jump in and try this, I'd like to find out if other people have tried something similar, or if there is a reason (other than portability issues) why this is a terrible idea.

Thanks!

-- Jim
Re: Loading an image using GTK on Linux [message #794723 is a reply to message #791470] Thu, 09 February 2012 11:20 Go to previous messageGo to next message
Eclipse UserFriend
This already happen if you call this image constructor: Image(Display, String). See:

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/graphics/Image.java

Line: 663
Re: Loading an image using GTK on Linux [message #797415 is a reply to message #794723] Mon, 13 February 2012 08:07 Go to previous message
Eclipse UserFriend
Thanks! We'll investigate. We're currently loading images out of a JAR file, but changing that would not be difficult.
Previous Topic:Crash using browser.evaluate
Next Topic:FilteredTree
Goto Forum:
  


Current Time: Tue Jul 15 15:16:23 EDT 2025

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

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

Back to the top