Method ChangeAspectRatio
ChangeAspectRatio(Double, Double)
Adjust the envelope's aspect ratio to match the ratio of the given width and height.
Declaration
public void ChangeAspectRatio(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
Double | width | A width. |
Double | height | A height. |
Remarks
The operation preserves the center of the envelope and only increases either height or width, not both. If the new width would be greater than the old, the width is changed and the height remains the same. If the new width would be less than or equal to the old, the height is changed and the width remains the same.
The width
and height
are in units defined by the SpatialReference.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |