Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alpha blended splash screen - working now 2

Status
Not open for further replies.

CADTenchy

Technical User
Dec 12, 2007
237
GB
As a follow up to my 'help me please' post, I've now managed to sort it out.

The page(s) here:

do indeed tell you successfully how to get a nice alpha blended splash screen for your Delphi app.

However, there are two bits of extra info worth sharing.

Firstly, on 1st page (link above), the instructions on creating the premultiplied bitmap misses one vital piece of information.
In Photoshop, when you do your File/new, and set your image to be 32 bit and transparent, once your blank image is created, go to Image/Mode, and set it to 8 bits/Channel. RGB should be ticked.
Mine was defaulting to 32 bits/Channel which was preventing me from getting the option to save as bitmap.

The other tip is when you move onto pages 2 and 3, and want to use PNG instead of BMP for the splash screen, ensure you go here:

to download the GraphicEx library. The version supplied in the project files zip is missing some units.
(this is actually mentioned in the comments on the tutorial page, I noticed after I worked it out...)

Have fun.


Steve (Delphi 2007 & XP)
 
There is a memory leak in TPNGGraphic.LoadFromStream.
This can be fixed by inserting

FreeMem(FRawBuffer);

in line 6983 of the latest
version (before the line FRawBuffer := nil;)

Aaron
 

Thanks Aaron!


Steve (Delphi 2007 & XP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top