Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.