Interface for all options of a ImageFill.

See ImageFill.

See

ImageFill

Hierarchy

  • ImageFillStyleProperties

Properties

fitMode: ImageFitMode

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
})
sourceMissingColor: Color

The color filling element when image is loading or image loading failed.

surroundingColor: Color

The color filling the area of element not filled by the image.