ImageFill

Defines an image fill style.

Constructors

ImageFill(image,opacity,transform)ImageFill

Constructs an image fill style.

image
(string | Image)

An Image or a URL string (wrapped in a default Image).

opacity
number
1

Opacity of the image, from 0 to 1.

transform

The resolved render matrix.

Properties

.imageImage

The image (URL plus placement options) used to fill the geometry.

.opacitynumber

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

.transformAffineMatrix

The resolved render matrix mapping image pixel coordinates to project coordinates. Computed by the Fill modifier from the geometry's bounding box, the Fill's transform parameter, and the image's position/rotation/scale options.

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