<?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: Problem with getting screenshot using latest ArcGIS SDK on iOS 6 in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365109#M3147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I use the getImage method from bernese.&lt;BR /&gt;I use it in this manner:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; //export image of mapView

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIImage *screenshot = [[UIImage alloc] initWithData:[self getImage]];

 //save image to photo album
 UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: I do not have any code similar to the DrawableProperty snippet you included.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your reply. I noticed that the code starts working if you send the app to the background and bring it back. It is weird but it starts working correctly after sending the app to the background and getting it back to the foreground but it does not work before doing it, it just shows blank image..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:59:04 GMT</pubDate>
    <dc:creator>OguzhanTopsakal</dc:creator>
    <dc:date>2021-12-11T16:59:04Z</dc:date>
    <item>
      <title>Problem with getting screenshot using latest ArcGIS SDK on iOS 6</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365107#M3145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This question has been asked before and answered (for example: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/78166-How-to-save-screenshot-of-AGSMapView" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/78166-How-to-save-screenshot-of-AGSMapView&lt;/A&gt;&lt;SPAN&gt;). However, the solution provided returns a black blank image on iOS 6 when used on a device (it works on the simulator). The suggestion to fix the problem on the device is to try use the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAEAGLLayer *eaglLayer = (CAEAGLLayer *) self.mapView.layer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eaglLayer.drawableProperties = @{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kEAGLDrawablePropertyRetainedBacking: [NSNumber numberWithBool:YES],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kEAGLDrawablePropertyColorFormat: kEAGLColorFormatRGBA8
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it did not work for me. I would really appreciate if someone can share a solution for this problem..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Latest ArcGIS SDK, I am using is:Version 10.1.1 Update 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365107#M3145</guid>
      <dc:creator>OguzhanTopsakal</dc:creator>
      <dc:date>2021-12-11T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting screenshot using latest ArcGIS SDK on iOS 6</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365108#M3146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use the getImage method from bernese.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use it in this manner:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; //export image of mapView

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIImage *screenshot = [[UIImage alloc] initWithData:[self getImage]];

 //save image to photo album
 UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I do not have any code similar to the DrawableProperty snippet you included.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365108#M3146</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2021-12-11T16:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting screenshot using latest ArcGIS SDK on iOS 6</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365109#M3147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I use the getImage method from bernese.&lt;BR /&gt;I use it in this manner:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; //export image of mapView

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIImage *screenshot = [[UIImage alloc] initWithData:[self getImage]];

 //save image to photo album
 UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: I do not have any code similar to the DrawableProperty snippet you included.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your reply. I noticed that the code starts working if you send the app to the background and bring it back. It is weird but it starts working correctly after sending the app to the background and getting it back to the foreground but it does not work before doing it, it just shows blank image..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365109#M3147</guid>
      <dc:creator>OguzhanTopsakal</dc:creator>
      <dc:date>2021-12-11T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting screenshot using latest ArcGIS SDK on iOS 6</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365110#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are developing a enterprise application better use the UIGetScreenImage() API. (Don't use if you are developing a app for publishing to appstore)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was facing the same issue but what I did was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)Captured the complete screen shot using this API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)Cropped the image only to the MAP area.(If you have both Orientation support then add conditions for all four)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its working perfect for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 14:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365110#M3148</guid>
      <dc:creator>baidynathpanda</dc:creator>
      <dc:date>2013-08-12T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with getting screenshot using latest ArcGIS SDK on iOS 6</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365111#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent! Thank you very much. UIGetScreenImage() worked for me too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 18:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-with-getting-screenshot-using-latest/m-p/365111#M3149</guid>
      <dc:creator>OguzhanTopsakal</dc:creator>
      <dc:date>2013-08-13T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

