Select to view content in your preferred language

Layer.ToBitmap() for WPF?

712
1
06-06-2011 07:14 PM
linusang
Emerging Contributor
Hi how do i emulate this function with WPF?

I tried using the RenderTargetBitmap but the Render() method accepts a Visual, not a DependencyObject that the Layer class is inherited from...

thanks
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
Layer.ToBitmap() is only available in Silverlight and doesn't exist in the WPF version.
It exists there only to enable certain printing scenarios that otherwise would be impossible in Silverlight. With WPF that limitation is not there, and you can instead generate a bitmap directly of the entire map (Map is a Visual).
0 Kudos