|
1 | 1 | --- |
2 | | -title: "Creating a 256-Color Icon or Cursor (Image Editor for Icons)" |
| 2 | +title: "Using the 256-Color Palette (Image Editor for Icons)" |
3 | 3 | ms.date: "11/04/2016" |
4 | | -helpviewer_keywords: ["256-color palette", "cursors [C++], color", "colors [C++], icons", "colors [C++], cursors", "icons, color"] |
| 4 | +helpviewer_keywords: ["256-color palette", "cursors [C++], color", "colors [C++], icons", "colors [C++], cursors", "icons, color", "colors [C++], icons and cursors", "color palettes, 256-color", "palettes, 256-color"] |
5 | 5 | ms.assetid: 2738089b-4fd3-4c45-96ae-6a15e4c6b780 |
6 | 6 | --- |
7 | | -# Creating a 256-Color Icon or Cursor (Image Editor for Icons) |
| 7 | +# Using the 256-Color Palette (Image Editor for Icons) |
8 | 8 |
|
9 | 9 | Using the **Image** editor, icons and cursors can be sized large (64 × 64) with a 256-color palette to choose from. After creating the resource, a device image style is selected. |
10 | 10 |
|
11 | | -### To create a 256-color icon or cursor |
| 11 | +For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index). |
12 | 12 |
|
13 | | -1. In [Resource View](../windows/resource-view-window.md), 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.) |
| 13 | +## To create a 256-color icon or cursor |
| 14 | + |
| 15 | +1. In [Resource View](../windows/resource-view-window.md), 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 right-click the **Cursor** folder and select **Insert Cursor** from the shortcut menu.) |
14 | 16 |
|
15 | 17 | > [!NOTE] |
16 | 18 | > If your project doesn't already contain an .rc file, please see [Creating a New Resource Script File](../windows/how-to-create-a-resource-script-file.md). |
17 | 19 |
|
18 | | -2. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and click **New**. |
| 20 | +1. In the [Insert Resource dialog box](../windows/add-resource-dialog-box.md), select **Icon** or **Cursor** and choose **New**. |
| 21 | + |
| 22 | +1. On the **Image** menu, select **New Device Image**. |
| 23 | + |
| 24 | +1. Select the 256-color image style you want. |
| 25 | + |
| 26 | +## To choose a color from the 256-color palette for large icons |
19 | 27 |
|
20 | | -3. On the **Image** menu, click **New Device Image**. |
| 28 | +To draw with a selection from the 256-color palette, you need to select the colors from the **Colors** palette in the [Colors window](../windows/colors-window-image-editor-for-icons.md). |
21 | 29 |
|
22 | | -4. Select the 256-color image style you want. |
| 30 | +1. Select the large icon or cursor, or create a new large icon or cursor. |
23 | 31 |
|
24 | | -For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index). |
| 32 | +1. Choose a color from the 256 colors displayed in the **Colors** palette in the **Colors** window. |
| 33 | + |
| 34 | + The color selected will become the current color in the **Colors** palette in the **Colors** window. |
| 35 | + |
| 36 | + > [!NOTE] |
| 37 | + > The initial palette used for 256-color images matches the palette returned by the `CreateHalftonePalette` Windows API. All icons intended for the Windows shell should use this palette to prevent flicker during palette realization. |
25 | 38 |
|
26 | 39 | ## Requirements |
27 | 40 |
|
28 | 41 | None |
29 | 42 |
|
30 | 43 | ## See Also |
31 | 44 |
|
32 | | -[Using the 256-Color Palette](../windows/using-the-256-color-palette-image-editor-for-icons.md)<br/> |
33 | 45 | [Accelerator Keys](../windows/accelerator-keys-image-editor-for-icons.md)<br/> |
34 | | -[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md) |
| 46 | +[Icons and Cursors: Image Resources for Display Devices](../windows/icons-and-cursors-image-resources-for-display-devices-image-editor-for-icons.md) |
0 commit comments