ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToAdfMapImage Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > Converter Class : ToAdfMapImage Method




agsMap
The ArcGIS Server MapImage to convert.
imageFormat
The Web ADF ImageFormat to use (JPG, PNG8, etc.).
Converts an ArcGIS Server MapImage to a Web ADF MapImage.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToAdfMapImage( _
   ByVal agsMap As ESRI.ArcGIS.ADF.ArcGISServer.MapImage, _
   ByVal imageFormat As ESRI.ArcGIS.ADF.Web.ImageFormat _
) As ESRI.ArcGIS.ADF.Web.MapImage
Visual Basic (Usage)Copy Code
Dim agsMap As ESRI.ArcGIS.ADF.ArcGISServer.MapImage
Dim imageFormat As ESRI.ArcGIS.ADF.Web.ImageFormat
Dim value As ESRI.ArcGIS.ADF.Web.MapImage
 
value = Converter.ToAdfMapImage(agsMap, imageFormat)
C# 
public static ESRI.ArcGIS.ADF.Web.MapImage ToAdfMapImage( 
   ESRI.ArcGIS.ADF.ArcGISServer.MapImage agsMap,
   ESRI.ArcGIS.ADF.Web.ImageFormat imageFormat
)

Parameters

agsMap
The ArcGIS Server MapImage to convert.
imageFormat
The Web ADF ImageFormat to use (JPG, PNG8, etc.).

Return Value

The converted Web ADF MapImage.

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.