CAEAGLLayer *eaglLayer = (CAEAGLLayer *) self.mapView.layer; eaglLayer.drawableProperties = @{ kEAGLDrawablePropertyRetainedBacking: [NSNumber numberWithBool:YES], kEAGLDrawablePropertyColorFormat: kEAGLColorFormatRGBA8 };
//export image of mapView UIImage *screenshot = [[UIImage alloc] initWithData:[self getImage]]; //save image to photo album UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
I use the getImage method from bernese.I use it in this manner: //export image of mapView UIImage *screenshot = [[UIImage alloc] initWithData:[self getImage]]; //save image to photo album UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil); Edit: I do not have any code similar to the DrawableProperty snippet you included.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.