Anybody know how to save a drawing?

i am making a drawing board as a part of my bigger game…and i need the user to be able to save/download what he drew on the board…that is assume…he should be able to save a snapshot of a part of the screen as graphic. How can i achieve this?(any tips will be helpful)