Interface ICanvas
Hierarchy
- ICanvas
Index
Properties
Methods
Properties
heightSearch playground for height
Canvas height.
widthSearch playground for width
Canvas width.
Methods
get ContextSearch playground for getContext
returns a drawing context on the canvas.
Parameters
contextType: string
context identifier.
Optional contextAttributes: any
context attributes.
Returns ICanvasRenderingContext
ICanvasRenderingContext object.
to DataURLSearch playground for toDataURL
returns a data URI containing a representation of the image in the format specified by the type parameter.
Parameters
mime: string
the image format.
Returns string
string containing the requested data URI.
Class used to abstract a canvas