Instanciate a new ProcessingImage canvas
id concerned canvas
Adapt canvas' appearance (width/height) according to image
to keep aspect ratio and dimensions
Clear context's canvas
Draw a black and white image from an original source
densityPixel stats according to grayscaled image
HTML Canvas element
Context 2d of canvas
Get image processing options from html view
Get binary values [0; 1] from array rgb values [0; 255]
image as RGBA 32 bits pixels
Get scaled dimensions of canvas
width of image
height of image
aspect ratio object {ratio, width, height}
Generated using TypeDoc
ProcessingImage class to define a canvas drawing a grayscale image
Lucas Fridez lucas.fridez@he-arc.ch