Archive: Do I have to use a .BMP file in my installer ?


Do I have to use a .BMP file in my installer ?
I am under the impression that I have to use a .bmp file for any graphics I use in NSIS installer.

I'd like transparency for some images that appear in the body of the installer.

Can I use .PNG or .GIF ?


This is really a general Win32 question. You should do a Google search. If it has not already be done, you're looking at a plug-in or bare minimum a lot of System plug-in usage. Not to mention support may be lacking pre Vista or XP.

Stu


It depends on the way you want to use your image.
In general Windows accept all OLE objects for image which can be .bmp .jpg .gif .png or .ico file.


...
Yes, but not with alpha transparency. And that is what he (and many others before) want.


Originally posted by Highcoder
Yes, but not with alpha transparency. And that is what he (and many others before) want.
PNG and GIF support transparency...
Maybe he thinks about transparent form below the images? (by default the form is gray)
That is the different!

...
PNG, GIF and even BMP supports transparency. But isn´t it that NSIS doesn´t support that? I remember that i´ve tried 32bit bmp´s and PNG´s but that doesn´t work for me...


The problem is that win32 doesn't (easily) support it. But are we really talking about alpha-layer type transparency? Or just on/off transparency? Because the latter is possible with BMPs. I think all you have to do is use #FF00FF color (magenta) for every pixel you want transparent. But maybe you need to set some flag as well, I guess google should know.