Image fitting mode.
Example:
const imageFill = new ImageFill({
fitMode: ImageFitMode.Stretch
})
The image source element to use.
Can be any of ImageFillSource.
Most commonly a HTMLImageElement
.
Example:
const myImage = new Image()
myImage.src = 'https://example.com/myImage.png'
const imageFill = new ImageFill({
source: myImage
})
The color filling element when image is loading or image loading failed.
The color filling the area of element not filled by the image.
Interface for all options of a ImageFill.
See ImageFill.
ImageFill