Skip to content
⌘ NSIS Forum Archive

AdvSplash: fadein/fadeout/transparency

7 posts

brainsucker#

AdvSplash: fadein/fadeout/transparency

Modified splash, supports fade in/out (win2k/xp), transparency (24bit/8bit images), 5.5k uncompressed dll size.
brainsucker#
AdvSplash

Partial fadein bug fixed (sorry).
Yathosho#
hmm, i tried this but it didnt give me transparency.

neiter

advsplash::show 3000 100 100 003152 $TEMP\spltmp

nor

advsplash::show 3000 100 100 0x003152 $TEMP\spltmp

worked here, although i didn't found anything in the documentation, what the 0x means exactly.

how about an example in the documentation?
brainsucker#
Strange. As I know nobody got any problems before... Is you file 8-bit or 24-bit?

0x means hexidecimal value. You should change your color parts (red, green and blue) into hexidecimal and then combine them. For example R=255 G=100 B=16 -> R=0xFF G=0x64 B=0x10 -> Trans. Color = 0xFF6410.

If you are using 8-bit palette image, you can use (0x1000000 + ColorIndexAtPalette).
Yathosho#
i used a 24-bit image. the odd thing is, when i use common colors (primary and secondary colors), it works. once i use other values, it doesnt work.

example:

i used a red value (no pure red), but the red didnt turn transparent. instead the black border of the image did. when i used magenta (FF00FF) i had no problem.

could it be that this only works on colors from the windows palette?
rainwater#
Originally posted by killahbite
i used a 24-bit image. the odd thing is, when i use common colors (primary and secondary colors), it works. once i use other values, it doesnt work.

example:

i used a red value (no pure red), but the red didnt turn transparent. instead the black border of the image did. when i used magenta (FF00FF) i had no problem.

could it be that this only works on colors from the windows palette?
You should convert it to 8-bit before you distribute it. That way, Windows 9x users will be able to see it. That is also probably what is causing your problem.