Scope: static
Source: src/display/canvas/CanvasInterpolation.js#L7
Since: 3.0.0
Methods:
Public Members
setBicubic
<static> setBicubic(canvas)
Description:
Sets the CSS image-rendering property on the given canvas to be 'bicubic' (aka 'auto').
Parameters:
name | type | optional | description |
---|---|---|---|
canvas | HTMLCanvasElement | No | The canvas object to have the style set on. |
Returns: HTMLCanvasElement - The canvas.
Source: src/display/canvas/CanvasInterpolation.js#L37
Since: 3.0.0
setCrisp
<static> setCrisp(canvas)
Description:
Sets the CSS image-rendering property on the given canvas to be 'crisp' (aka 'optimize contrast' on webkit).
Parameters:
name | type | optional | description |
---|---|---|---|
canvas | HTMLCanvasElement | No | The canvas object to have the style set on. |
Returns: HTMLCanvasElement - The canvas.
Source: src/display/canvas/CanvasInterpolation.js#L13
Since: 3.0.0