Skip to content

Commit 431e8bd

Browse files
authored
Merge pull request MicrosoftDocs#1692 from msebolt/resource-file-consolidation-pr11
resource file consolidation pr11
2 parents b8a3593 + d1f6c2d commit 431e8bd

7 files changed

Lines changed: 57 additions & 123 deletions

‎.openpublishing.redirection.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7430,6 +7430,26 @@
74307430
"redirect_url": "/cpp/windows/troubleshooting-the-dialog-editor",
74317431
"redirect_document_id": false
74327432
},
7433+
{
7434+
"source_path": "docs/windows/cropping-or-extending-an-entire-image-image-editor-for-icons.md",
7435+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7436+
"redirect_document_id": false
7437+
},
7438+
{
7439+
"source_path": "docs/windows/resizing-an-entire-image-image-editor-for-icons.md",
7440+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7441+
"redirect_document_id": false
7442+
},
7443+
{
7444+
"source_path": "docs/windows/shrinking-or-stretching-an-entire-image-image-editor-for-icons.md",
7445+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7446+
"redirect_document_id": false
7447+
},
7448+
{
7449+
"source_path": "docs/windows/shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md",
7450+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7451+
"redirect_document_id": false
7452+
},
74337453
{
74347454
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
74357455
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@
100100
###### [Editing Parts of an Image (Image Editor for Icons)](editing-parts-of-an-image-image-editor-for-icons.md)
101101
###### [Flipping an Image (Image Editor for Icons)](flipping-an-image-image-editor-for-icons.md)
102102
###### [Resizing an Image (Image Editor for Icons)](resizing-an-image-image-editor-for-icons.md)
103-
####### [Resizing an Entire Image (Image Editor for Icons)](resizing-an-entire-image-image-editor-for-icons.md)
104-
####### [Cropping or Extending an Entire Image (Image Editor for Icons)](cropping-or-extending-an-entire-image-image-editor-for-icons.md)
105-
####### [Shrinking or Stretching an Entire Image (Image Editor for Icons)](shrinking-or-stretching-an-entire-image-image-editor-for-icons.md)
106-
####### [Shrinking or Stretching Part of an Image (Image Editor for Icons)](shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md)
107103
###### [Creating a Custom Brush (Image Editor for Icons)](creating-a-custom-brush-image-editor-for-icons.md)
108104
###### [Changing Image Properties (Image Editor for Icons)](changing-image-properties-image-editor-for-icons.md)
109105
###### [Saving Bitmaps as GIFs or JPEGs (Image Editor for Icons)](saving-bitmaps-as-gifs-or-jpegs-image-editor-for-icons.md)

‎docs/windows/cropping-or-extending-an-entire-image-image-editor-for-icons.md‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎docs/windows/resizing-an-entire-image-image-editor-for-icons.md‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎docs/windows/resizing-an-image-image-editor-for-icons.md‎

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,63 @@
22
title: "Resizing an Image (Image Editor for Icons)"
33
ms.date: "11/04/2016"
44
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"]
66
ms.assetid: d83a02c4-4dfe-4586-a0df-51a50c2ba71d
77
---
88
# Resizing an Image (Image Editor for Icons)
99

1010
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.
1111

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.
1313

1414
When the selection includes the entire image, the **Image** editor either shrinks and stretches the image, or crops and extends it.
1515

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.
1717

1818
![Sizing handles on a bitmap](../mfc/media/vcimageeditorsizinghandles.gif "vcImageEditorSizingHandles")<br/>
1919
Sizing Handles
2020

2121
> [!NOTE]
2222
> 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.
2323
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).
2525

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
2727

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.
2929

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.
3131

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.
3362

3463
## Requirements
3564

‎docs/windows/shrinking-or-stretching-an-entire-image-image-editor-for-icons.md‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎docs/windows/shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)