CanvasInterpolation

.Display.Canvas. CanvasInterpolation

Since:
  • 3.0.0

Methods

(static) setBicubic(canvas) → {HTMLCanvasElement}

Since:
  • 3.0.0
将给定画布上的CSS图像渲染属性设置为 `bicubic` (也称为 `auto` ).
Parameters:
Name Type Description
canvas HTMLCanvasElement 要设置样式的画布对象.
Returns:
画布.
Type
HTMLCanvasElement

(static) setCrisp(canvas) → {HTMLCanvasElement}

Since:
  • 3.0.0
将给定画布上的CSS图像渲染属性设置为 `crisp` (也称为webkit上的 `optimize contrast` ).
Parameters:
Name Type Description
canvas HTMLCanvasElement 要设置样式的画布对象.
Returns:
画布.
Type
HTMLCanvasElement