How to create Map Image from the map control

Discussion created by AttentiDev on Jan 6, 2011
Hi All,

I need to create a Map Image from my map that contains tiles and some Graphics.
Is there a way to that in JavaScript API?

In the WEB ADF.NET I used to take advantage of the following command:
MapImage mi = MapFunctionality.DrawExtent(envelope);

I need that feature for reporting purposes.

Best Regards,