Instanciate a new OriginalImage
id canvas
Adapt canvas' appearance (width/height) according to image
to keep aspect ratio and dimensions
Clear context's canvas
Draw an image in a canvas
buffer image source
Promise to wait until parallel drawing is finished to continue analyze
HTML Canvas element
Context 2d of canvas
OriginalImage
Get scaled dimensions of canvas
width of image
height of image
aspect ratio object {ratio, width, height}
Generated using TypeDoc
OriginalImage class to draw a source image in a canvas