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


Problem saving a 32 bit Icon

Posted on 2004-04-23
Medium Priority
Last Modified: 2010-04-05
How can I save a Icon in 32 bit color?, I notice that delphi save the Icon only in 16 bit.
Question by:elvinluis29
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
  • 4
  • 2
LVL 11

Accepted Solution

shaneholmes earned 40 total points
ID: 10900363

I've recently 'tackled' this problem. You can't draw on an icon because
it has no canvas, so you have to copy it to a bitmap.
After that you can
create an icon from that bitmap again but you'll need a second bitmap as
a mask for the transparent parts (which is also something you shouldp
jeep in mind when copying the icon to the bitmap).

You can find a link
to an article explaining this on Earl Glynns page. Look at the icon
section at

Note, change your PixelFormat

BitmapIconA.PixelFormat := pf32Bit

LVL 11

Expert Comment

ID: 10900396
How do I create a bitmap from an icon?  (FAQ 2752D)
How do I create an icon from a bitmap?  (FAQ 2748D),1410,17752,00.html,1410,17748,00.html

LVL 34

Expert Comment

ID: 10905670
hello elvinluis29, this is a rather complex thing to do, especially for 32 bit icons, and their Alpha channel byte in windows XP, but you might look at my Icons to file at

which has a provision for 32 bit icons

ask questions if you need more information
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 11

Expert Comment

ID: 10978609
elvinluis29, a grade of C?

First, like Slick812 said, "it is a very complex thing to do".

Secondly, i believe we (Slick & I) pointed you in the correct direction. If you didn't like the answer, you could have responded saying that is not what you were looking for....explain further, and we would have helped further.

Thirdly, you only provided 20 points. Its not that great of a compensation for someone to spend lots of time on your question. Seeing your question is more of a Intermediate to hard level question, you may have wanted to boost your points to entice others to have an attempt at your question. There are experts like myself and many others, who really dont care about the points, and will make a stab at it regardless....

Fourth - Experts remember those who grade badly and in the future will be hesitant on answering posted questions by those who un-necesarily grade to the extreme.....


Author Comment

ID: 10980384
Shane, I am sorry it was not my intension to do this, I mean I didn´t know its work this way.

The trouble was that I could solve the problem that i had and I just want to close the question.


LVL 11

Expert Comment

ID: 10980481
No Problem, i assumed you were new... just so you know in the future, be careful... Good luck!

Author Comment

ID: 10981764
Thank you, and sorry again.

Featured Post

Independent Software Vendors: 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…
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