Solved

Transparent images and buttons, displaying of png files

Posted on 2004-04-13
5
430 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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