<static> setImageRenderingCrisp(canvas) → {HTMLCanvasElement}
Sets the CSS image-rendering property on the given canvas to be 'crisp' (aka 'optimize contrast' on webkit).
Note that if this doesn't given the desired result then see the setSmoothingEnabled.
Parameters
Name | Type | Description |
---|---|---|
canvas | HTMLCanvasElement | The canvas to set image-rendering crisp on. |
Returns
HTMLCanvasElement -
Returns the source canvas.
- Source code: utils/Canvas.js (Line 260)
Please login to continue.