Save map with graphics as image file

Discussion created by udbk on Apr 28, 2013
Latest reply on Apr 1, 2014 by createeasy
Hello All,
We are using the 3.1 Javascript API for displaying map, and have created few grahphics on map. We want the user to be able to save the resultant display as a jpeg, ping, bmp or some such format.
If user right-click on the base map and 'Save Picture As', user gets the map without the graphics layer. But we need to show graphics on image.
Anyone know how we can make this work?