<?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: Export Map as emf file in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/export-map-as-emf-file/m-p/1329147#M12108</link>
    <description>&lt;P&gt;I have written the following code but the resolution is not good enough. I don't see how I can indicate these settings:&lt;/P&gt;&lt;P&gt;await WaitForRenderCompleteAsync(MyMapView);&lt;/P&gt;&lt;P&gt;// Export the image from the map view.&lt;BR /&gt;RuntimeImage image = await MyMapView.ExportImageAsync();&lt;/P&gt;&lt;P&gt;Stream fileStream = await image.GetEncodedBufferAsync();&lt;BR /&gt;string path = Path.Combine("C:\\Users\\xxx\\Documents", "testesri.emf");&lt;/P&gt;&lt;P&gt;using (FileStream outputFileStream = new FileStream(path, FileMode.CreateNew))&lt;BR /&gt;{&lt;BR /&gt;await fileStream.CopyToAsync(outputFileStream);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 16:39:49 GMT</pubDate>
    <dc:creator>sylvainc</dc:creator>
    <dc:date>2023-09-15T16:39:49Z</dc:date>
    <item>
      <title>Export Map as emf file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/export-map-as-emf-file/m-p/1328831#M12107</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just started to use the .Net SDK and I am looking for exporting my map/viewport into a vector image as I used to do in the ArcGIS software. There is no tutorial on that topic in the documentation. Is there a good example somewhere else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/export-map-as-emf-file/m-p/1328831#M12107</guid>
      <dc:creator>sylvainc</dc:creator>
      <dc:date>2023-09-14T18:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export Map as emf file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/export-map-as-emf-file/m-p/1329147#M12108</link>
      <description>&lt;P&gt;I have written the following code but the resolution is not good enough. I don't see how I can indicate these settings:&lt;/P&gt;&lt;P&gt;await WaitForRenderCompleteAsync(MyMapView);&lt;/P&gt;&lt;P&gt;// Export the image from the map view.&lt;BR /&gt;RuntimeImage image = await MyMapView.ExportImageAsync();&lt;/P&gt;&lt;P&gt;Stream fileStream = await image.GetEncodedBufferAsync();&lt;BR /&gt;string path = Path.Combine("C:\\Users\\xxx\\Documents", "testesri.emf");&lt;/P&gt;&lt;P&gt;using (FileStream outputFileStream = new FileStream(path, FileMode.CreateNew))&lt;BR /&gt;{&lt;BR /&gt;await fileStream.CopyToAsync(outputFileStream);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 16:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/export-map-as-emf-file/m-p/1329147#M12108</guid>
      <dc:creator>sylvainc</dc:creator>
      <dc:date>2023-09-15T16:39:49Z</dc:date>
    </item>
  </channel>
</rss>

