|
2 | 2 | title: "Resizing an Image (Image Editor for Icons)" |
3 | 3 | ms.date: "11/04/2016" |
4 | 4 | f1_keywords: ["vc.editors.image.editing"] |
5 | | -helpviewer_keywords: ["Image editor [C++], resizing images", "graphics [C++], resizing", "images [C++], resizing", "resizing images"] |
| 5 | +helpviewer_keywords: ["Image editor [C++], resizing images", "graphics [C++], resizing", "images [C++], resizing", "resizing images", "size [C++], images", "images [C++], cropping", "images [C++], extending", "Image editor [C++], cropping or extending images", "Image editor [C++], shrinking and stretching images", "images [C++], stretching", "images [C++], shrinking", "bitmaps [C++], shrinking", "bitmaps [C++], stretching"] |
6 | 6 | ms.assetid: d83a02c4-4dfe-4586-a0df-51a50c2ba71d |
7 | 7 | --- |
8 | 8 | # Resizing an Image (Image Editor for Icons) |
9 | 9 |
|
10 | 10 | The behavior of the **Image** editor while resizing an image depends on whether you've [selected](../windows/selecting-an-area-of-an-image-image-editor-for-icons.md) the entire image or just part of it. |
11 | 11 |
|
12 | | -When the selection includes only part of the image, the **Image** editor shrinks the selection by deleting rows or columns of pixels and filling the vacated regions with the current background color, or it stretches the selection by duplicating rows or columns of pixels. |
| 12 | +When the selection includes only part of the image, the **Image** editor shrinks the selection by deleting rows or columns of pixels and filling the vacated regions with the current background color. It can also stretch the selection by duplicating rows or columns of pixels. |
13 | 13 |
|
14 | 14 | When the selection includes the entire image, the **Image** editor either shrinks and stretches the image, or crops and extends it. |
15 | 15 |
|
16 | | -There are two mechanisms for resizing an image: the sizing handles and the [Properties window](/visualstudio/ide/reference/properties-window). You can drag the sizing handles to change the size of all or part of an image. Sizing handles that you can drag are solid. You cannot drag handles that are hollow. You can use the **Properties** window to resize the entire image only, not a selected part. |
| 16 | +There are two mechanisms for resizing an image: the sizing handles and the [Properties window](/visualstudio/ide/reference/properties-window). You drag the sizing handles to change the size of all or part of an image. Sizing handles that you can drag are solid. You can't drag handles that are hollow. Use the **Properties** window to resize the entire image only, not a selected part. |
17 | 17 |
|
18 | 18 | <br/> |
19 | 19 | Sizing Handles |
20 | 20 |
|
21 | 21 | > [!NOTE] |
22 | 22 | > If you have the **Tile Grid** option selected in the [Grid Settings dialog box](../windows/grid-settings-dialog-box-image-editor-for-icons.md), then resizing snaps to the next tile grid line. If only the **Pixel Grid** option is selected (the default setting), resizing snaps to the next available pixel. |
23 | 23 |
|
24 | | -- [Resizing an Entire Image](../windows/resizing-an-entire-image-image-editor-for-icons.md) |
| 24 | +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). |
25 | 25 |
|
26 | | -- [Cropping or Extending an Entire Image](cropping-or-extending-an-entire-image-image-editor-for-icons.md) |
| 26 | +## To resize an entire image using the properties window |
27 | 27 |
|
28 | | -- [Shrinking or Stretching an Entire Image](../windows/shrinking-or-stretching-an-entire-image-image-editor-for-icons.md) |
| 28 | +1. Open the image whose properties you want to change. |
29 | 29 |
|
30 | | -- [Shrinking or Stretching Part of an Image](../windows/shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md) |
| 30 | +1. In the **Width** and **Height** boxes in the [Properties window](/visualstudio/ide/reference/properties-window), type the dimensions that you want. |
31 | 31 |
|
32 | | -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 | + If you're increasing the size of the image, the **Image** editor extends the image to the right, downward, or both, and fills the new region with the current background color. The image isn't stretched. |
| 33 | + |
| 34 | + If you shorten the size of the image, the **Image** editor crops the image on the right or bottom edge, or both. |
| 35 | + |
| 36 | + > [!NOTE] |
| 37 | + > You can use the **Width** and **Height** properties to resize only the entire image, not to resize a partial selection. |
| 38 | +
|
| 39 | +## To crop or extend an entire image |
| 40 | + |
| 41 | +1. Select the entire image. |
| 42 | + |
| 43 | + If part of the image is currently selected, and you want to select the entire image, select anywhere on the image outside the current selection border. |
| 44 | + |
| 45 | +1. Drag a sizing handle until the image is the right size. |
| 46 | + |
| 47 | +Normally, the **Image** editor crops or enlarges an image when you resize it by moving a sizing handle. If you hold down the **Shift** key as you move a sizing handle, the **Image** editor shrinks or stretches the image. |
| 48 | + |
| 49 | +## To shrink or stretch an entire image |
| 50 | + |
| 51 | +1. Select the entire image. |
| 52 | + |
| 53 | + If a part of the image is currently selected and you want to select the entire image, select anywhere on the image outside the current selection border. |
| 54 | + |
| 55 | +1. Hold down the **Shift** key and drag a sizing handle until the image is the right size. |
| 56 | + |
| 57 | +## To shrink or stretch part of an image |
| 58 | + |
| 59 | +1. Select the part of the image you want to resize. For more information, see [Selecting an Area of the Image](../windows/selecting-an-area-of-an-image-image-editor-for-icons.md). |
| 60 | + |
| 61 | +1. Drag one of the sizing handles until the selection is the right size. |
33 | 62 |
|
34 | 63 | ## Requirements |
35 | 64 |
|
|
0 commit comments