Icons and Cursors: Image Resources for Display Devices
Icons and cursors are graphical resources that can contain multiple images in different sizes and color schemes for different types of display devices. In addition, a cursor has a "hot spot," the location Windows uses to track its position. Both icons and cursors are created and edited using the Image editor, as are bitmaps and other images.
When you create a new icon or cursor, the Image editor first creates an image of a standard type. The image is initially filled with the screen (transparent) color. If the image is a cursor, the hot spot is initially the upper-left corner (coordinates 0,0).
By default, the Image editor supports the creation of additional images for the devices shown in the following table. You can create images for other devices by typing width, height, and color-count parameters into the Custom Image dialog box.
|Color||Width (pixels)||Height (pixels)|
- Creating a New Device Image (Icon or Cursor)
- Adding an Image for a Different Display Device
- Copying a Device Image
- Deleting a Device Image
- Creating Transparent or Inverse Regions in Device Images
- Creating a 256-Color Icon or Cursor
- Setting a Cursor's Hot Spot
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: Localizing Web Forms.