I want to save the mapcontrol image into a png file. I tried silverlight 3's WriteableBitmap() to get the Map control snapshot:
WriteableBitmap bitmap = new WriteableBitmao(map,null);
img.Source = bitmap;
and hope to use .NET ImageTools library 's(which is also a CodePlex project) to get a png file. Link of the method is
Unfortanately, I get Security Exception errors when I call bitmap.ToImage() (this is the .Net ImageTools function. It will read pixel data. )
I cannot read pixel data using the bitmap.Pixels, but I can put the bitmap to a image control as source.
It seems that Silverlight's WriteableBitmap does not full support MulitScaleImage, seen form this post
http://forums.silverlight.net/forums/p/140438/456511.aspx . As the DeepEarth's Map Controler is depend on the MultiScaleImage, so trying to use WriteableBitmap is a wrong
I need this function very much, is there any way to do this?