Hi,
I am evaluating Map suite desktop edition with WPF application, and I would like save the Map and Legend as Image (jpg)
Could you please help me on this?
Regards,
Bala
Hi,
I am evaluating Map suite desktop edition with WPF application, and I would like save the Map and Legend as Image (jpg)
Could you please help me on this?
Regards,
Bala
Hi Prakash,
Thanks for you post and welcome to MapSuite world, would you please try the following code:
…….
Bitmap bitmap = wpfMap1.GetBitmap(1000, 800);
bitmap.Save(@"D:\Result.png");
One more information is that here is a simple to show how to use Legend on our wiki:
wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_Miscellaneous_Samples#Show_A_Legend
Hope it helps
Johnny
Hi Johny,
Thanks for your tiime for assisting on this issue. I could able to have the Legend in my Map. But I could not save the Map with Legend by using the above code.
Bitmap bitmap = wpfMap1.GetBitmap(1000, 800);
bitmap.Save(@"D:\Result.png");
This code give a "Black" Map with zoom control and ThinkGeo footer.
Could you please help me getting the Map and Legend saved as Image.?
Thanks
Prakash Bala
Hi Prakash,
Attached is the sample that could sort it out, would you please try it? If you have any more question, please feel free to let us know.
Best Regards
Johnny
Thanks johnny for your effort to fix the issue. I got the Legend and I had the issue with saving map. WHile saving it shows black image. I did fix the issue with Map Engine object to save the bitmap and bitmap to Jpg.
I found the solution and it works correct now. Thanks for your support on this.
-Prakash Bala
Hi Prakash,
Glad to hear that you have fixed this issue, if any other questions or problems, please feel free to let us know.
Best Regards,
Johnny