Solved

Transparent images and buttons, displaying of png files

Posted on 2004-04-13
5
429 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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