<?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: Exporting the map image in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53703#M517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, that's reassuring at least, because that's what I've always got and seems to be what Nimesh expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;n&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 00:07:04 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2011-08-19T00:07:04Z</dc:date>
    <item>
      <title>Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53693#M507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where would I look for a function to export the mapview's image?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried the reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 17:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53693#M507</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2011-07-18T17:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53694#M508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no direct function in ArcGIS API for iOS to export image of mapView. You need to use iOS SDK to do so. It's very simple. Here is the code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;- (IBAction)exportMapViewImage:(id)sender {
 
 //export image of mapView
 UIGraphicsBeginImageContext(self.mapView.frame.size);
 [self.mapView.layer renderInContext:UIGraphicsGetCurrentContext()];
 UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
 UIGraphicsEndImageContext();
 
 //save image to photo album
 UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
}

- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Was there an error?
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error != NULL)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp; // Show error message...
&amp;nbsp; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message:[error localizedDescription]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegate:nil
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cancelButtonTitle:@"OK"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherButtonTitles:nil];
&amp;nbsp; [alert show];
&amp;nbsp; [alert release];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp; // No errors
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp; // Show message image successfully saved
&amp;nbsp; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Image Saved"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message:@"Image saved to photo album successfully!"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegate:nil
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cancelButtonTitle:@"OK"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otherButtonTitles:nil];
&amp;nbsp; [alert show];
&amp;nbsp; [alert release];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53694#M508</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2021-12-10T22:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53695#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the snippet. I was unable to get it to work however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get "Error, Data unavailable" when it executes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see a property or method for AGSMapView called layer, but the compiler doesn't complain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I've tried 1.8 and 2.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought perhaps it was my Feature layers, so I created a new ViewDemo with Dynamic layer, and still got the error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53695#M509</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2011-07-20T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53696#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you're testing in Simulator. Try testing on device. The layer property of mapView is inherited property of UIView.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Send your project if you're unable to get it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 15:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53696#M510</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-07-20T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53697#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, it does work on the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And now, it works on the simulator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's interesting is, the saved image shows gridlines for the Tiles, while the screen image doesn't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 13:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53697#M511</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2011-07-21T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53698#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nimesh, that is a neat little trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to try and extend that to export pdf to email. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 13:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53698#M512</guid>
      <dc:creator>ChristopherEbright</dc:creator>
      <dc:date>2011-07-22T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53699#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to know that it works for you now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Not sure why the grid lines coming in the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 20:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53699#M513</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-07-22T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53700#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did anyone find out how to make an image without gridlines?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 13:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53700#M514</guid>
      <dc:creator>BedaKuster</dc:creator>
      <dc:date>2011-08-17T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53701#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Took a little bit of sleuthing and reading up of Apple's documentation, but I did in the end manage to get rid of those pesky "grid lines". They're doubtless tile boundaries that aren't being drawn to the graphics context in the same way as to the screen. To me it smacked of some rounding during rendering, or anti-aliasing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure enough, to get rid of them you need to add this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;CGContextSetShouldAntialias(UIGraphicsGetCurrentContext(), NO);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you will notice if you're using a retina display, that the captured image is different to the on-screen one. To fix that, you need to begin the Image Context with some options other than the defaults adopted by &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;UIGraphicsBeginImageContext()&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is some serious Apple silliness, but at least &lt;/SPAN&gt;&lt;A href="http://developer.apple.com/library/iOS/#documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html" rel="nofollow noopener noreferrer" target="_blank"&gt;the documentation is there&lt;/A&gt;&lt;SPAN&gt; to guide you. So, use the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;UIGraphicsBeginImageContextWithOptions(self.mapView.frame.size, NO, 0.0f);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By specifying a scale of 0.0f, you are telling the renderer to use the device's main display's resolution. On a retina display, you'd get the same effect if you used 2.0f, but 0.0f will work on any device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might also get away with YES instead of NO for the opaque parameter if you know enough about the layers you're rendering etc. etc..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the final code looks something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;UIGraphicsBeginImageContextWithOptions(self.mapView.frame.size, NO, 0.0f);
CGContextSetShouldAntialias(UIGraphicsGetCurrentContext(), NO);

[self.mapView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

//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;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I still haven't got this to work in the simulator. Rick - do you remember how you got that to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53701#M515</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-12-10T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53702#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I spoke too soon. It no longer works in simulator. I get Data Unavailable now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53702#M516</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2011-08-18T11:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53703#M517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, that's reassuring at least, because that's what I've always got and seems to be what Nimesh expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;n&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 00:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53703#M517</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2011-08-19T00:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53704#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the trick with antialiasing. By the way, same code works for me in (iPad-)simulator...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 07:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53704#M518</guid>
      <dc:creator>BedaKuster</dc:creator>
      <dc:date>2011-08-19T07:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting the map image</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53705#M519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyone wants to implement a flash effect, here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(add a white, opaque, fullscreen view panel, &lt;/SPAN&gt;&lt;STRONG&gt;zero alpha&lt;/STRONG&gt;&lt;SPAN&gt;, over the mapView)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)exportMapViewImage {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //export image of mapView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; UIGraphicsBeginImageContextWithOptions(self.mapView.frame.size, NO, 0.0f);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CGContextSetShouldAntialias(UIGraphicsGetCurrentContext(), NO);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView.layer renderInContext:UIGraphicsGetCurrentContext()];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; UIGraphicsEndImageContext();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // implement a flash &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.flashView.alpha = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [UIView beginAnimations:nil context:NULL];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [UIView setAnimationDuration:0.5];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.flashView.alpha = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [UIView commitAnimations];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //save image to photo album&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exporting-the-map-image/m-p/53705#M519</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2011-08-19T12:12:55Z</dc:date>
    </item>
  </channel>
</rss>

