I would like to know if there is any other way than using WriteableBitmap to convert the current screen into array of bytes.
Because I am trying to get a screenshot of Esri map, but I am getting “pixel access not allowed” error.
Please help.
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had the same problem with ESRI–we were trying to print a map. You can’t access the pixels in the image because of cross-site security. If you are hosting the silverlight app on the same server as the ESRI ARCServer, you should have no problem.
There is a printing example on the ESRI samples web site and it works like a charm, but it is because the app and the images are on the same server.
What I ended up doing was totally haxor, but it worked. I used an ashx handler like a proxie to get the base map image that I needed, then drew on top of that image.