title: how to snapshot a part of HTML5 canvas?
body: <p>I am drawing a full-window graph with the HTML5 canvas feature, and what I want to do is to define a small square of region inside this canvas, and snapshot that the part of region into certain format, like png, jpg or a base64 text. </p>