Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ImageFillStyleProperties

Interface for all options of a ImageFill.

See ImageFill.

see

ImageFill

Index

Properties

fitMode

fitMode : ImageFitMode

Image fitting mode.

Example:

const imageFill = new ImageFill({
     fitMode: ImageFitMode.Stretch
})

source

source : ImageFillSource

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

sourceMissingColor : Color

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

surroundingColor

surroundingColor : Color

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