[DUG] Transparent Forms

Rob van der Linde robvdl at paradise.net.nz
Wed Mar 29 19:38:45 NZST 2006


It can be done on all windows versions, not just XP:

1) Take a screen capture of the screen and store in an offscreen bitmap
2) Work out where your splash screen is going to appear (e.g center of 
screen) and copy into a new smaller bitmap
3) use Delphi PNG component http://pngdelphi.sourceforge.net/ and load a 
transparent PNG and paste it on top the smaller screen bitmap.
4) use this new bitmap as your splash screen. It will appear transparent.

Alister Christie wrote:
> I'm interested in doing a fancy transparent forms (for a splash 
> screen).  Ideally I'd just place a PNG onto the form and the 
> transparancy would be worked out based on the alpha chanel of the PNG.
>
> Has anyone done anything like this?
>


More information about the Delphi mailing list