Methods
Static getImageData
getImageData( image: HTMLImageElement , width?: undefined | number , height?: undefined | number ) : ImageData
Parameters
image: HTMLImageElement
Optional width: undefined | number
Optional height: undefined | number
Returns ImageData
Static measureText
measureText( text: string , font: string ) : number
Parameters
text: string
font: string
Returns number
Static requestBuffer
requestBuffer( width: number , height: number ) : CanvasRenderingContext2D
Parameters
width: number
height: number
Returns CanvasRenderingContext2D
The context object.
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A Canvas' 2D rendering context that is not rendered.
Useful to work with ImageData objects, TextMetrics, to create bitmap data and anything else you can do with a 2D context.