I want to export an image of my ArcGIS map object with a graphic layer on it. I tried to use my own esri web services for export, but they are not so efficient and understandable that they don’t support complex geometric shapes and they don’t support local layers like Google map provider. The service only supports ArcGISTiledLayer, I want it at all levels. So, I searched on their forums, but they say that they will not support local levels until the next versions.
I tried ImageTool libraries and WritableBitmapEx libraries in codeplex. But when I try to get byte [] from WritableBitmap, I cannot access the Pixels property for some security reasons all the time. The application throws a SecurityException and says "you cannot access this pixel property."
So, is there a way to get the UIElement control image and save it to disk? Or is there a workaround for this security exception?
source
share