Save Map Image to ClipBoard?

Topics: SharpMap v0.9 / v1.x
May 30, 2009 at 9:51 PM

Probably simple, could not find functionality.  Want to provide a user with a button or right-click context menu that will save the map as displayed on screen to the clipboard.

Thanks in advance.

R. Males

Cincinnati, Ohio, USA

May 31, 2009 at 12:52 PM

try
{

    Clipboard.Clear();
    Clipboard.SetImage(mapImage1.Map.GetMap());
}

May 31, 2009 at 11:05 PM

works perfectly, thank you.