Creates an instance of image sketchpad.
Image html element.
Sketchpad options as javascript object.
Canvas helper class.
Clears the image sketchpad.
Destroy the instance and remove the canvas.
Disables image sketchpad.
Download merged image with sketch as png file.
Download image with original size.
Enables image sketchpad.
Load a sketch from a json string.
JSON string to parse.
Merges image with sketch and returns a base64 string as promise.
Download image with original size.
ReDo the last UnDone drawing on your sketch.
Set sketchpad options.
Sketchpad options.
Get a json string which can be used to load a sketch again.
UnDo the last drawing on your sketch.
Generated using TypeDoc
Image sketchpad main class. It handles creation of canvas element, drawing on it, and merge it with the image and handle the data as json out- or input.