|Re: PNG Splash Screen [message #539688 is a reply to message #539617]
||Fri, 11 June 2010 20:51
| Andrew Niefer
Registered: July 2009
I found these two related bugs:|
Look here http://wiki.eclipse.org/Equinox_Launcher
for some details on the -showsplash argument which controls the initial
displaying of the splash screen in the launcher.
There are really three phases to the splash screen when eclipse starts:
1) Native code, before java starts
2) Java calling out to Native code from Main, before OSGi starts
3) Java code working through SWT, after workbench starts
For (1) and (2) some platforms may be able to display png, but not all.
Each plaform has different native implementations, you'll need to see which
ones support png:
- win32 - uses LoadImage with IMAGE_BITMAP
- gtk - uses gdk_pixbuf_new_from_file, gdk_image_new_from_pixbuf.
- cocoa - uses NSImage
- carbon - uses CGImageSourceRef (or custom bmp code on older systems)
- motif uses custom bmp code
If the platform(s) you are developing for can show png, then you might just
be able to name your png as "splash.bmp" and be happy.
Otherwise, you will need to wait until SWT is up and running for part (3)
and do your magic with SWT code.
> This should be quite easy to do, but I'm struggling to configure my RCP
> project to launch use a png splash screen icon, rather than using the
> default bmp splash screen image format.
> The reason I want to use PNG, is the Splash Screen I've designed has a
> transparent background.
> I've seen examples of other RCP projects which have managed to do this
> (example Adobe Flash Builder).
> I believe the call to launch the .bmp splash screen is somewhere in the
> .exe used to launch the RCP App, but I'm not sure how to configure this.
> There may also be a way to force .bmp images to have transparent
> backgrounds; but I've not found a reliable way to do this.
> Any suggestions or thoughts?
> Thanks in advance.
Powered by FUDForum
. Page generated in 0.18955 seconds