Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / C++
Article

Icon Ejector - The Icon Conversion Tool

Rate me:
Please Sign up or sign in to vote.
4.10/5 (15 votes)
8 Mar 20052 min read 67.9K   2.6K   46   15
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


Written By
Web Developer
Romania Romania
My details are disclosed on need to know basis.
You don't need to know !

Comments and Discussions

 
GeneralMy vote of 2 Pin
VEMS23-Feb-10 7:52
VEMS23-Feb-10 7:52 
General:omg: All files were deleted... BE CAREFUL... Pin
Sadhanandh9-Mar-05 0:16
Sadhanandh9-Mar-05 0:16 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
IBone©9-Mar-05 4:32
IBone©9-Mar-05 4:32 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
Sadhanandh9-Mar-05 17:45
Sadhanandh9-Mar-05 17:45 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
IBone©9-Mar-05 19:07
IBone©9-Mar-05 19:07 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
murugan_gs9-Mar-05 19:39
murugan_gs9-Mar-05 19:39 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
Lord Kixdemp1-Sep-05 10:39
Lord Kixdemp1-Sep-05 10:39 
GeneralRe: :omg: All files were deleted... BE CAREFUL... Pin
VEMS23-Feb-10 7:53
VEMS23-Feb-10 7:53 
GeneralNeed Help Pin
Nemok8-Mar-05 7:48
Nemok8-Mar-05 7:48 
GeneralRe: Need Help [modified] Pin
Maxzz25-Mar-05 9:43
Maxzz25-Mar-05 9:43 
Generalthanks!!!!!!!!!!!!!!!! Pin
P.Pronk3-Mar-05 10:01
P.Pronk3-Mar-05 10:01 
GeneralFiles could not be downloaded Pin
Earl Allen2-Mar-05 13:24
Earl Allen2-Mar-05 13:24 
GeneralRe: Files could not be downloaded Pin
IBone©3-Mar-05 6:44
IBone©3-Mar-05 6:44 
GeneralLink problem Pin
fifi23-Feb-05 17:34
fifi23-Feb-05 17:34 
GeneralRe: Link problem Pin
IBone©23-Feb-05 21:08
IBone©23-Feb-05 21:08 
Thanks .

The problem has already been taken care of Smile | :)


IBONEU4FUN!®

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.