Construct a new Canvas
id of concerned canvas
Adapt canvas' appearance (width/height) according to image
to keep aspect ratio and dimensions
Clear context's canvas
HTML Canvas element
Context 2d of canvas
Get scaled dimensions of canvas
width of image
height of image
aspect ratio object {ratio, width, height}
Generated using TypeDoc
Canvas class
Contains canvas DOM element and its 2D Context
Lucas Fridez lucas.fridez@he-arc.ch