Home > Tutorials > Adding a new icon in a Visual Studio solution using the plug-in

Adding a new icon in a solution using
the Visual Studio plug-in

Prerequisites

Axialis IconWorkshop™ 6.31 or later
Tryout or Professional Edition
Microsoft Visual Studio® 2005 or superior

This topic explains how to create a new icon in a solution and how to work on it in IconWorkshop using the Visual Studio® plug-in (read the plug-in introduction). This feature is available for Visual Studio® 2005 and 2008 only. Prior versions of Visual Studio® do not support the plugin.

Adding a new icon in the solution

1. Launch the Visual StudioŽ IDE.

2. Open a solution. In the solution explorer, double-click on the resource file (extension .RC). The Resource Explorer opens.

3. The Resource View window opens. In the resource tree, right click on the Icon folder and choose "Insert Icon".

4. A new icon (say its name is "IDI_ICON1" and the icon filename is "icon1.ico") is added to the solution and automatically opened in a document window. It contains only 2 newly created formats 16x16 and 32x32 in 16 colors. Open it in IconWorkshop by choosing "Tools/Edit in IconWorkshop" or by clicking the associated button in the toolbar.

If you use Visual Studio 2005, you must save the file (the associated RC file) and reload the icon file from the Solution Explorer before clicking on the plug-in button.

5. Once the file is opened in IconWorkshop, select "Draw/New Image Format" or press Ins. In this procedure, we'll make an icon fully compliant with Windows Vista but you can make icons using different specifications (read more about icons). In Colors select "RGB / Alpha Channel", in Size select "256x256 (Vista)".

6. As we want to make a Windows Vista icon, we'll compress the format in PNG: Select "PNG Compress 256x256 format". Be sure to leave the option "Creation based on the following image" unchecked. Click OK. The new 256x256 format is created.

7. Now you can do any icon by assembling available 256x256 image objects. For example, if you want to create document icons, we recommend you, in the Librarian, the folders "Objects/Samples/Large" and "Objects/Samples/File Types". In order to make things easier here, we'll start from an existing icon. What about a nice RSS icon? Ok, in the folder "Objects/Pack 4 - Web 2.0 Icons" (), locate the file "RSS.png" (). Add it to the project as we did in step 12 using drag & drop ( & ). The image is visible in the preview window ():

8. Before going further, we must remove the 2 formats 32x32-16 and 16x16-16 originally created by Visual StudioŽ. Right-click on them and choose "Remove Image Format" (the only format in the icon should be "256x256 - RGB/A").

9. Create all the following formats by using the same mathod as we've seen in Lesson 4:

64x64 - RGB/A

48x48 - RGB/A

32x32 - RGB/A

16x16 - RGB/A

48x48 - 256 colors

32x32 - 256 colors

16x16 - 256 colors

32x32 - 16 colors

16x16 - 16 colors

10. When you have finished, the icon document window should look like this:

11. Click on the various formats () and see the resulting icon at scale 1:1 in the preview window (). Note that the first image 256x256 RGB/A is PNG compressed because the small image is displayed in the upper-right corner.

12. Save your icon, select File/Save or press Ctrl+S. Close the document.

13. Switch back to Visual StudioŽ. The IDE prompts you "icon1.ico - This file has been modified outside of Visual Studio. Do you want to reload it?". Click Yes.

24. You have finished. Now you can compile your project with your new icon embedded.

 

 

Related Topics

Make your own icons

Introducing the Visual Studio plugin

Modifying an icon in a Visual Studio solution using the plug-in

Compress an Icon for Windows Vista using the plug-in

Article written by Axialis Software Team on August 12, 2008.

Copyright ©2008 Axialis Software - All Rights Reserved - Terms of Use.

site map | terms of use | privacy | user licenses | company | contact us | free icons | make icons | make screensavers | make cursors

Copyright ©2011 Axialis Software. All rights reserved.
Send us feedback about the site.

Microsoft, Windows, Windows XP, Windows Vista are registered trademarks of Microsoft Corporation
Adobe, Flash, Photoshop, Illustrator are registered trademarks of Adobe System Incorporated
Apple, AppStore, Ipod, iPhone, iPad are registered trademarks of Apple Inc