ESRI.ArcGIS.ADF.IMS
StretchToFit Property
See Also  Send Feedback
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.

Requirements

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

See Also

© 2011 All Rights Reserved.