Canvas.setImageRenderingCrisp()

<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)
doc_phaser
2017-02-14 10:41:04
Comments
Leave a Comment

Please login to continue.