View Single Post
Old 11th September 2017, 07:11   #3
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 518
Send a message via ICQ to T.Slappy
There is no reason to develop new plugin or support the .png format. Existing NSIS plugin advsplash can do this for you:

PHP Code:
Function .onInit
  
Splash Bitmap
  InitPluginsDir
  SetOutPath $PLUGINSDIR
     File 
/oname=$PLUGINSDIR\splash.bmp "${SPLASH_BITMAP}"
     
advsplash::show 1000 1500 1500 0xFF00FF $PLUGINSDIR\splash
     Pop 
$; $0 has '1' if the user closed the splash screen early'0' if everything closed normally, and '-1' if some error occurred.
     
Delete $PLUGINSDIR\splash.bmp
FunctionEnd 
The key is to set color which will be transparent: in this case it is 0xFF00FF.
Attached Thumbnails
Click image for larger version

Name:	splash.jpg
Views:	62
Size:	50.8 KB
ID:	53525  

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote