Creating a Device Image (Image Editor for Icons)


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

When you create a new icon or cursor resource, the Image editor first creates an image in a specific style (32 × 32, 16 colors for icons and 32 × 32, Monochrome for cursors). You can then add images in different sizes and styles to the initial icon or cursor and edit each additional image, as needed, for the different display devices. You can also edit an image by performing a cut-and-paste operation from an existing image type or from a bitmap created in a graphics program.

When you open the icon or cursor resource in the Image editor, the image most closely matching the current display device is opened by default.

To create a new icon or cursor

  1. In Resource View, right-click your .rc file, then choose Insert Resource from the shortcut menu. (If you already have an existing image resource in your .rc file, such as a cursor, you can simply right-click the Cursor folder and select Insert Cursor from the shortcut menu.)

    System_CAPS_ICON_note.jpg Note

    If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. In the Insert Resource dialog box, select Icon or Cursor and click New. For icons, this creates an icon resource with a 32 × 32, 16-color icon. For cursors, a 32 × 32, Monochrome (2-color) image is created.

    If a plus sign (+) appears next to the image resource type in the Insert Resource dialog box, it means that toolbar templates are available. Click the plus sign to expand the list of templates, select a template, and click New.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.



Icons and Cursors: Image Resources for Display Devices
Accelerator Keys
Icons and Cursors: Image Resources for Display Devices