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 |
---|---|---|
System.Double | width | A width. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |