<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: generate dynamic image from map in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614451#M15800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code you posted does not seem to be from ArcGIS API for Silverlight. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly look at this SDK sample and documentation. ArcGISDynamicMapServiceLayer allows you to generate image on the fly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are working with 10.1 service (ArcGIS API for Silverlight 3.0 Beta 1), ArcGISDynamicMapServiceLayer has been extended so that you can also re-order the layers, apply different renderer, etc.&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#DynamicLayerXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#DynamicLayerXAML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 17:56:55 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-12-14T17:56:55Z</dc:date>
    <item>
      <title>generate dynamic image from map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614450#M15799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for the code to generate dynamic image of map.is it possible?I want to generate dynamic image of map and also i can set extend and all.please help me,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found one code but i am not sure how to use this code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;foreach (IMapFunctionality mf in Map1.GetFunctionalities()){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mf.DisplaySettings.ImageDescriptor.Height = imgheight;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mf.DisplaySettings.ImageDescriptor.Width = imgwidth;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mf.DisplaySettings.ImageDescriptor.TransparentBackground = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mf.DisplaySettings.ImageDescriptor.ImageFormat = ESRI.ArcGIS.ADF.Web.ImageFormat.PNG8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.ADF.Web.MapImage mi = mf.DrawExtent(Map1.Extent);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bitmaps.Add(mi.GetImage());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Drawing.Bitmap newimg = new System.Drawing.Bitmap(imgwidth, imgheight);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Drawing.Graphics imggraphics = System.Drawing.Graphics.FromImage(newimg);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;imggraphics.FillRectangle(new System.Drawing.SolidBrush(System.Drawing.Color.LightGray), 0, 0, imgwidth, imgheight);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for (int j = bitmaps.Count-1; j &amp;gt;=0; j--){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Drawing.Bitmap bmp = (System.Drawing.Bitmap)bitmaps&lt;J&gt;;&lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; imggraphics.DrawImage(bmp, 0, 0, imgwidth, imgheight);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because i am not able to see Imapfunctionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Foram&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 16:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614450#M15799</guid>
      <dc:creator>ForamParikh</dc:creator>
      <dc:date>2011-12-13T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: generate dynamic image from map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614451#M15800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code you posted does not seem to be from ArcGIS API for Silverlight. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kindly look at this SDK sample and documentation. ArcGISDynamicMapServiceLayer allows you to generate image on the fly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are working with 10.1 service (ArcGIS API for Silverlight 3.0 Beta 1), ArcGISDynamicMapServiceLayer has been extended so that you can also re-order the layers, apply different renderer, etc.&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#DynamicLayerXAML"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#DynamicLayerXAML&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614451#M15800</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-12-14T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: generate dynamic image from map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614452#M15801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks alot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 17:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/generate-dynamic-image-from-map/m-p/614452#M15801</guid>
      <dc:creator>ForamParikh</dc:creator>
      <dc:date>2012-01-20T17:22:36Z</dc:date>
    </item>
  </channel>
</rss>

