Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Icon Ejector - The Icon Conversion Tool

0.00/5 (No votes)
8 Mar 2005 1  
Extract icon instances from icon files to both icon or bitmap format .

Sample Image - IconEjector.jpg

IMPORTANT NOTICE

Important Notice : You have to confirm if you Press the Wipe output folder button.

Introduction

On the internet you'll find very large icon libraries. Including them as resources might substantially increase your exe's size due to the fact that one ICO actually contains at least one icon having different sizes.

This application will allow you to extract all ICOs to separate ICO or BMP files and then use only those that you need in your application.

About the application

Sample Image - IconEjector.jpg

Demo output of application.

I do not take credit for the code. It's mostly a remake of Microsoft's IconPro which you'll find attached.

It contains all the functions you need for managing ICO files.

How to use?

Place the ICO files you wish to process in a folder and create an empty output folder. Then select the ICO folder and the output folder. The tooltip will teach you how to edit the file naming pattern. If you extract to bitmap format, make sure you pick a background color.

This software works great with TomKat's ToolBar Generator.

Tech details

The process is very simple. This ICO files have headers that point you to each part of the file . You'll find the structures inside the application.

Actually no technical details are really required, because I don't think many will actually download the source code. If you get the demo and the icon pack, you'll be more than happy.

More info can be found on MSDN and by actually reading and understanding the source code.

History

  • 24.02.2005

    First release.

  • 25.02.2005

    You can now wipe output folder automatically. You can also process subfolders with icons. Output structure will be kept as original.Interface doesn't freeze anymore and process can be aborted (Using VB DoEvents like function).

  • 09.03.2005

    Added confirmation for wiping output folder.

Finally

Any feedback and ratings are most appreciated. For commercial use contact me.

Be cool.

PS: For cool icons you might consider visiting iconfactory.com or deviantart.com.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here