Solved

Problem saving a 32 bit Icon

Posted on 2004-04-23
7
240 Views
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.
0
Comment
Question by:elvinluis29
  • 4
  • 2
7 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 20 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 http://www.efg2.com.


http://www.efg2.com/Lab/Library/Delphi/Graphics/ICOtoBMP.pas.txt

Note, change your PixelFormat

BitmapIconA.PixelFormat := pf32Bit

Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10900396
How do I create a bitmap from an icon?  (FAQ 2752D)
How do I create an icon from a bitmap?  (FAQ 2748D)

http://community.borland.com/article/0,1410,17752,00.html
http://community.borland.com/article/0,1410,17748,00.html


Shane
0
 
LVL 33

Expert Comment

by:Slick812
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


http://www.angelfire.com/hi5/delphizeus/saveicons.html

which has a provision for 32 bit icons

ask questions if you need more information
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 11

Expert Comment

by:shaneholmes
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.....

Shane
0
 

Author Comment

by:elvinluis29
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.

Sorry

Elvin.
0
 
LVL 11

Expert Comment

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

Author Comment

by:elvinluis29
ID: 10981764
Thank you, and sorry again.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 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

19 Experts available now in Live!

Get 1:1 Help Now