<?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: Map saved to a bitmap file in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338656#M8712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same question! I'm trying to capture the current map layout including all graphics to a image, but I get the Pixel&amp;nbsp; 'System.Security.SecurityException'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 13:57:59 GMT</pubDate>
    <dc:creator>Ramonvan_Bruggen</dc:creator>
    <dc:date>2012-01-25T13:57:59Z</dc:date>
    <item>
      <title>Map saved to a bitmap file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338654#M8710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to get a Silverlight application to save the currrent contents of the map control to a png file or eventually a PDF.&amp;nbsp; This means that I've got to get the contents of the map into a bitmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had all sorts of problems due to my map being made of contents from different domains.&amp;nbsp; I've got the following layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- bing maps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- an ArcGIS Server dynamic map service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I've partially solved the issue with data from different domains by using the proxyurl as in the following link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Secure_services/016600000022000000/"&gt;http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Secure_services/016600000022000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nowever this doesn't solve the issue with the bing maps layer...&amp;nbsp; is there a solution to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//this is for getting the bing graphics:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WriteableBitmap layer0 = new WriteableBitmap(Map.Layers[0].ToBitmap());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;results in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pixels = 'layer0.Pixels' threw an exception of type 'System.Security.SecurityException'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's because the data is from a different domain...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Feb 2011 18:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338654#M8710</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2011-02-06T18:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map saved to a bitmap file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338655#M8711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just wondering if anyone had any experience of getting the Bing imeragery into a bitmap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a nasty problem that prevents the app from exporting pdf, png etc images of the map for reporting purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 15:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338655#M8711</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2011-02-10T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Map saved to a bitmap file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338656#M8712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same question! I'm trying to capture the current map layout including all graphics to a image, but I get the Pixel&amp;nbsp; 'System.Security.SecurityException'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 13:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-saved-to-a-bitmap-file/m-p/338656#M8712</guid>
      <dc:creator>Ramonvan_Bruggen</dc:creator>
      <dc:date>2012-01-25T13:57:59Z</dc:date>
    </item>
  </channel>
</rss>

