To create an image with Konva
, we can instantiate a Konva.Image()
object with image
property.
For image
property you can use:
- instance of
window.Image
ordocument.createElement('image')
- canvas element
- 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 %}