Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:54 Go to next message
Jim Mayer is currently offline Jim MayerFriend
Messages: 18
Registered: July 2009
Junior Member
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 16:20 Go to previous messageGo to next message
Silenio Quarti is currently offline Silenio QuartiFriend
Messages: 31
Registered: July 2009
Member
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 13:07 Go to previous message
Jim Mayer is currently offline Jim MayerFriend
Messages: 18
Registered: July 2009
Junior Member
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: Sat Apr 20 03:30:51 GMT 2024

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

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

Back to the top