<?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 RenderTargetBitmap not working in Runtime .NET 100.3 in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/rendertargetbitmap-not-working-in-runtime-net-100/m-p/505723#M6231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In previous versions (100.1, 100.2), the following code would put a copy of the displayed map image on the Clipboard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var bv = _mapView;

RenderTargetBitmap rtb = new RenderTargetBitmap((int)bv.ActualWidth, (int)bv.ActualHeight, 96, 96, System.Windows.Media.PixelFormats.Pbgra32);
rtb.Render(bv);
Clipboard.SetImage(rtb);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, however, the map portion is rendered as black (although the credits line at the bottom "Esri, HERE, NGA, USGS" still shows).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:33:25 GMT</pubDate>
    <dc:creator>DavidHope</dc:creator>
    <dc:date>2021-12-12T16:33:25Z</dc:date>
    <item>
      <title>RenderTargetBitmap not working in Runtime .NET 100.3</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/rendertargetbitmap-not-working-in-runtime-net-100/m-p/505723#M6231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In previous versions (100.1, 100.2), the following code would put a copy of the displayed map image on the Clipboard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var bv = _mapView;

RenderTargetBitmap rtb = new RenderTargetBitmap((int)bv.ActualWidth, (int)bv.ActualHeight, 96, 96, System.Windows.Media.PixelFormats.Pbgra32);
rtb.Render(bv);
Clipboard.SetImage(rtb);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, however, the map portion is rendered as black (although the credits line at the bottom "Esri, HERE, NGA, USGS" still shows).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/rendertargetbitmap-not-working-in-runtime-net-100/m-p/505723#M6231</guid>
      <dc:creator>DavidHope</dc:creator>
      <dc:date>2021-12-12T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: RenderTargetBitmap not working in Runtime .NET 100.3</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/rendertargetbitmap-not-working-in-runtime-net-100/m-p/505724#M6232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We made a change that significantly improves rendering performance in 100.3 by rendering the map on it's own and separate UI thread, but unfortunately thar also means the above API no longer "sees" what the map renders. Since we saw a huge performance on several scenarios and devices, we felt it was worth the perf improvement as you can still use the ExportImage method on the mapview to grab a screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if that doesn't work for you and I might be able to suggest another route&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/rendertargetbitmap-not-working-in-runtime-net-100/m-p/505724#M6232</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-07-11T14:47:14Z</dc:date>
    </item>
  </channel>
</rss>

