Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 503 Bytes

Image.md

File metadata and controls

15 lines (10 loc) · 503 Bytes

title: HTML5 canvas Image Tutorial

To create an image with Konva, we can instantiate a Konva.Image() object with image property.

For image property you can use:

  1. instance of window.Image or document.createElement('image')
  2. canvas element
  3. video element

For a full list of attributes and methods, check out the Konva.Image documentation.

{% iframe /downloads/code/shapes/Image.html %}

{% include_code Konva Image Demo shapes/Image.html %}