ImageFill

Defines an image fill style.

Constructors

ImageFill(image,opacity,transform)ImageFill

Constructs an image fill style.

image
string
opacity
number
1
transform

Properties

.imagestring

The URL of the image. Expected to start with cuttle-image://

.opacitynumber

The opacity of the image, from 0 (fully transparent) to 1 (fully opaque).

.transformAffineMatrix

The transform matrix of the image fill.

Methods

.clone()ImageFill

Returns a copy of this image fill.

.equals(fill)boolean
fill

Another fill to compare against.

Returns true if this fill is equal to fill, false otherwise.

.affineTransform(affineMatrix)ImageFillchainable

Transforms this image fill by the affine matrix affineMatrix.

affineMatrix
.affineTransformWithoutTranslation(affineMatrix)ImageFillchainable

Transforms this image fill by the affine matrix affineMatrix, ignoring translation.

affineMatrix