Canvas.setImageRenderingBicubic()

<static> setImageRenderingBicubic(canvas) → {HTMLCanvasElement}

Sets the CSS image-rendering property on the given canvas to be 'bicubic' (aka 'auto').
Note that if this doesn't given the desired result then see the CanvasUtils.setSmoothingEnabled method.

Parameters
Name Type Description
canvas HTMLCanvasElement

The canvas to set image-rendering bicubic on.

Returns
HTMLCanvasElement -

Returns the source canvas.

Source code: utils/Canvas.js (Line 283)
doc_phaser
2017-02-14 10:41:04
Comments
Leave a Comment

Please login to continue.