Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Transparent images and buttons, displaying of png files

Posted on 2004-04-13
5
Medium Priority
?
433 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

721 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