Skip to content
⌘ NSIS Forum Archive

Plugin for run PNG file as splash screen

4 posts

anandharaja#

Plugin for run PNG file as splash screen

hai

I want a plugin to run png file as splash screen , using the PNG file we can create any shape of splash screen.


Thank You😛 👍
r2du-soft#
What is cause not support nsis from PNG photo to show as SPLASH?


i have two dll for show png as splash but dont know how can use thats with parameter sending method!
T.Slappy#
There is no reason to develop new plugin or support the .png format. Existing NSIS plugin advsplash can do this for you:

Function .onInit
  ; Splash Bitmap
  InitPluginsDir
  SetOutPath $PLUGINSDIR
     File /oname=$PLUGINSDIR\splash.bmp "${SPLASH_BITMAP}"
     advsplash::show 1000 1500 1500 0xFF00FF $PLUGINSDIR\splash
     Pop $0 ; $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.
Yathosho#
Originally Posted by T.Slappy View Post
There is no reason to develop new plugin or support the .png format
…unless you want to use more than 1 alpha channel, which is likely when using shapes other than rectangles