Share via


Changing Image Properties (Image Editor for Icons)

You can set or modify properties of an image using the Properties window.

To change an image's properties

  1. Open the image in the Image editor.

  2. In the Properties window, change any or all properties for your image.

    Property

    Description

    Colors

    Specifies the color scheme for the image. Select Monochrome, 16, or 256, or True Color. If you have already drawn the image with a 16-color palette, selecting Monochrome causes substitutions of black and white for the colors in the image. Contrast is not always maintained: for example, adjacent areas of red and green are both converted to black.

    Filename

    Specifies the name of the image file. By default, Visual Studio assigns a base filename created by removing the first four characters ("IDB_") from the default resource identifier (IDB_BITMAP1) and adding the appropriate extension. The file name for the image in this example would be BITMAP1.bmp. You could rename it MYBITMAP1.bmp.

    Height

    Sets the height of the image (in pixels). The default value is 48. The image is cropped or blank space is added below the existing image.

    ID

    Sets the resource's identifier. For an image, Microsoft Visual Studio, by default, assigns the next available identifier in a series: IDB_BITMAP1, IDB_BITMAP2, and so forth. Similar names are used for icons and cursors.

    Palette

    Changes color properties. Double-click to select a color and display the Custom Color Selector dialog box. Define the color by typing RGB or HSL values in the appropriate text boxes.

    SaveCompressed

    Indicates whether the image is in a compressed format. This property is read-only. Visual Studio does not allow you to save images in a compressed format, so for any images created in Visual Studio, this property will be False. If you open a compressed image (created in another program) in Visual Studio, this property will be True. If you save a compressed image using Visual Studio, it will be uncompressed and this property will revert back to False.

    Width

    Sets the width of the image (in pixels). The default value for bitmaps is 48. The image is cropped or blank space is added to the right of the existing image.

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.

Requirements

None

See Also

Reference

Accelerator Keys (Image Editor for Icons)

Editing Graphical Resources (Image Editor for Icons)

Image Editor for Icons