Solved

Transparent images and buttons, displaying of png files

Posted on 2004-04-13
5
425 Views
Last Modified: 2010-04-05
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

0
Comment
Question by:Binsky
5 Comments
 

Expert Comment

by:SluX_mon
ID: 10811950
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.
0
 
LVL 11

Expert Comment

by:calinutz
ID: 10818064
You could try the http://www.alphaskins.com/ component pack. It is quite interesting... if you dont mind the price.
0
 
LVL 1

Author Comment

by:Binsky
ID: 10820741
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
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10907782
Closed, 125 points refunded.
modulo
Community Support Moderator
Experts Exchange
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now