Click here to Skip to main content
15,886,067 members
Articles / Programming Languages / Visual Basic
Article

Icon Proof Imagelist for .NET

Rate me:
Please Sign up or sign in to vote.
3.25/5 (8 votes)
17 Dec 20021 min read 83.3K   364   32   6
This is an icon specific ImageList that handles icon sizes properly and enables easy themed icon creation, using effects and layers like Photoshop.

Sample Image - IconProof.gif

Introduction

If you've ever been doing heavy work with icons and ImageLists, you'll find that the ImageList converts them to bitmaps and by default only pulls out the default size, it's hard to get at other sizes (e.g. if your desktop is displaying 32x32, the ImageList will return 32x32).

This class allows you to store and retrieve icons in multiple sizes, no more saving the icons as singles in different sizes.

Features

Icon Sizes

The class allows you retrieve all icon sizes from an icon file, not just the default one.

Effects

The class has the following functions for manipulating icons.

  1. Greyscale
  2. Bleach (Faded effect)
  3. Translucence (Make icons translucent)
  4. Add Drop shadows

Overlays

When I'm doing icons for applications I always use a theme and stick to it. I start with a topic icon and then overlay subject icons over the top. For example, a document (Topic), with a floppy disc (Action) for a save icon. This normally means making a lot of icons.

With the class you can create these overlays dynamically, so if you need to overlay the shortcut arrow over any icon you can. It also supports processing sets so you can draw background icon, draw foreground with drop shadow and use the template just changing the icons to use.

Comments

Sorry if this article is a bit sparse, this is my first thing on CodeProject. The demo shows exactly how to use the class and the power that it makes available. If you can solve any of the three issues or have more ideas then please E-mail [LeeDavies@bigfoot.com] me ;-).

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
United Kingdom United Kingdom
Now working for a small web company. Pay is terrible but its an easy life and stress free Smile | :) Writing a kick ass CMS.

Comments and Discussions

 
GeneralLove the idea..but Pin
Imogen7-Mar-06 4:07
Imogen7-Mar-06 4:07 
GeneralCall after a return.. Pin
Ricalawaba22-Mar-04 15:54
Ricalawaba22-Mar-04 15:54 
GeneralRe: Call after a return.. Pin
FruitBatInShades23-Mar-04 2:23
FruitBatInShades23-Mar-04 2:23 
GeneralImpending changes Pin
FruitBatInShades12-Sep-03 2:47
FruitBatInShades12-Sep-03 2:47 
Thanks to those who have emailed me about this class Smile | :) I'm a bit busy at the moment but will implement the features you requested when I get chance.

As usual any ideas or bugs Unsure | :~ please post.


GeneralGreyScale and Translucence don't work in overlay Pin
FruitBatInShades5-Dec-02 12:38
FruitBatInShades5-Dec-02 12:38 
GeneralBleach Error on Icon Pin
FruitBatInShades5-Dec-02 12:35
FruitBatInShades5-Dec-02 12:35 

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.