views:

200

answers:

0

I am trying to get the Silverlight control for Bing Maps to save an image of the map with the push pin I have added. I tried the approach described here: http://www.andybeaulieu.com/Home/tabid/67/EntryID/161/Default.aspx but I get an exception when I try to read the pixels in this line:

int pixel = bitmap.Pixels[bitmap.PixelWidth * y + x];

This is what I get:

"WriteableBitmap has protected content. Pixel access is not allowed."

I've been looking around and it seems that the problem is the maps being hosted on a different server than my "localhost".

Has anybody found a workaround for this?

P.S. I'm using VS2010 + SL4