ESRI.ArcGIS.ADF.IMS
StretchToFit Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > ImageDescriptor Class : StretchToFit Property




Gets or sets a property indicating whether the image should be stretched to fit the width or height if it is not proportional.

Syntax

Visual Basic (Declaration) 
Public Property StretchToFit As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageDescriptor
Dim value As Boolean
 
instance.StretchToFit = value
 
value = instance.StretchToFit
C# 
public bool StretchToFit {get; set;}

Remarks

If this property is true, the server compares the physical Width and Height, in pixels, to the coordinate extent of the map, that is the view's Extent property. If the ratio of the two widths does not equal the ratio of the two heights, then the server adjusts the extent of the map so that the map distance per pixel is the same in both width and height. The adjusted extent may be larger than the requested extent in this case.

If this property is false, the server does not adjust the extent if proportions are not equal, and the image may have a stretched appearance.

The default is true.

See Also

© 2010 All Rights Reserved.