Link to home
Start Free TrialLog in
Avatar of Binsky
Binsky

asked on

Transparent images and buttons, displaying of png files

Hi there,

I'm having a slight bit of trouble with images today...I'm creating an application that should resemble a piece of hardware. To do this, I've created a component that uses an image mask to be able to have transparent images (I use this to simulate round buttons).

Everything was ok, until the hardware designers changed the looks of the hardware...Now I need different "buttons", but am having trouble converting them.

This is slightly off topic, but I'm trying to use the original coreldraw drawing that is used for the hardware to cut/paste and export my navigation buttons. Exporting to bmp/jpg/gif ends up looking very crappy (due to compression and conversion losses I guess). So I ended up exporting to .png format, which yields the best results.

But the png format is not "displayable" by my transparent image, or TImage component...

Does anyone have a working solution for this? (Any component which allows transparency and supports .png is alright with me...)

Thanks in advance,

Robin

Avatar of SluX_mon
SluX_mon

U could try using DelphiX.It is a set component made for games.It includes DXImageList which is capable of showing png pcs with transparency.
Try www.delphigamedev.com or try googling for the newest version of DelphiX.
Hope this helps.
You could try the http://www.alphaskins.com/ component pack. It is quite interesting... if you dont mind the price.
Avatar of Binsky

ASKER

Hi there,

Thanks for the replies, but I appear to have found a solution myself!

The alphaskins may come in handy later, but I was looking for a free (and fast) solution.

The delphigamedev site appears to be down today (even though I remember being able to open it yesterday...)

I've added the TPNGImage component to my Delphi environment, and that delivered just what I needed, transparency and support for .png files...This is a component written by Gustavo David, available from http://pngdelphi.sourceforge.net.

I'm sorry, but I cannot be giving any points to y'all, as I've found a good solution myself (that'll teach me to ask before I've searched around!) ;-)

Robin
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial