ESRI.ArcGIS.ADF.Web
AdjustExtent Method
See Also 
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.
Adjust the requested extent of the page image (in inches - image size/device units) so that it fits the pixel proportions of the image.

Syntax

Visual Basic (Declaration) 
Public Shared Function AdjustExtent( _
   ByVal extent As Envelope, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer _
) As Envelope
Visual Basic (Usage)Copy Code
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.

Remarks

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.

See Also

© 2010 All Rights Reserved.