AnsweredAssumed Answered

RenderTargetBitmap not working in Runtime .NET 100.3

Question asked by dhope@ara.com on Jul 10, 2018
Latest reply on Jul 11, 2018 by mnielsen-esristaff

In previous versions (100.1, 100.2), the following code would put a copy of the displayed map image on the Clipboard:

 

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);

 

Now, however, the map portion is rendered as black (although the credits line at the bottom "Esri, HERE, NGA, USGS" still shows).

 

Is there a way to get this to work?

Outcomes