![]() ![]() |
ESRI.ArcGIS.ADF.Web | |
AdjustExtent Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web Namespace > NavigationUtility Class : AdjustExtent Method |
- extent
- The envelope to adjust.
- imageWidth
- The width of the image in pixels.
- imageHeight
- The height of the image in pixels.
Visual Basic (Declaration) | |
---|---|
Public Shared Function AdjustExtent( _ ByVal extent As Envelope, _ ByVal imageWidth As Integer, _ ByVal imageHeight As Integer _ ) As Envelope |
Visual Basic (Usage) | ![]() |
---|---|
Dim extent As Envelope Dim imageWidth As Integer Dim imageHeight As Integer Dim value As Envelope value = NavigationUtility.AdjustExtent(extent, imageWidth, imageHeight) |
C# | |
---|---|
public static Envelope AdjustExtent( Envelope extent, int imageWidth, int imageHeight ) |
Parameters
- extent
- The envelope to adjust.
- imageWidth
- The width of the image in pixels.
- imageHeight
- The height of the image in pixels.
Return Value
Envelope resized to fit the input pixel size of the image. This method enlarges the input envelope as necessary so that the new envelope has the same proportions as the view size in pixels, based on the image width and height values. The resulting envelope will always cover the input extent, but may cover more area in x or y. The new envelope will have the same center as the input envelope.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family