<?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: Generating an image representation for a layer in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/generating-an-image-representation-for-a-layer/m-p/29350#M128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We currently have this available only for Silverlight. You are right that it works on an internal property Canvas. I will forward your request to our dev lead but this is not currently supported in WPF.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 16:21:43 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-07-08T16:21:43Z</dc:date>
    <item>
      <title>Generating an image representation for a layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/generating-an-image-representation-for-a-layer/m-p/29349#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With ArcGIS for Silverlight I can use the ToBitmap() method from the Layer class to generate a bitmap. So I can use the result as a thumbnail for my layer. With the WPF version I don't have this method. I can use the RenderTargetBitmap class to generate an image from the Map because it inherits from the Visual base class. But I don't want to take the whole map representation... I need one for each layer. The Layer class is not a Visual, so I can't render it as an image (at least not as easily as I can with the map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw that the Layer class has a Canvas property. That's a LayerCanvas that inherits from a Panel and it should work. But the problem is: it's an internal property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So just to sum up my problem: how to generate an image representation for a layer? Not the whole map... just one layer at time...! Should I just use reflection to access this property? Are there any other solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 20:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/generating-an-image-representation-for-a-layer/m-p/29349#M127</guid>
      <dc:creator>AndreMachado</dc:creator>
      <dc:date>2011-06-29T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an image representation for a layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/generating-an-image-representation-for-a-layer/m-p/29350#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We currently have this available only for Silverlight. You are right that it works on an internal property Canvas. I will forward your request to our dev lead but this is not currently supported in WPF.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 16:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/generating-an-image-representation-for-a-layer/m-p/29350#M128</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-07-08T16:21:43Z</dc:date>
    </item>
  </channel>
</rss>

