# ImageFill

Defines an image fill style.

## Constructors

ImageFill(image,opacity,transform)→[ImageFill](https://cuttle.xyz/learn/reference/ImageFill)

Constructs an image fill style.

`image`

`string`

`opacity`

`number`

`1`

`transform`

`[AffineMatrix](https://cuttle.xyz/learn/reference/AffineMatrix)`

## 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).

.transform[AffineMatrix](https://cuttle.xyz/learn/reference/AffineMatrix)

The transform matrix of the image fill.

## Methods

.clone()→[ImageFill](https://cuttle.xyz/learn/reference/ImageFill)

Returns a copy of this image fill.

.equals(fill)→boolean

`fill`

`([Fill](https://cuttle.xyz/learn/reference/Fill) | [ImageFill](https://cuttle.xyz/learn/reference/ImageFill))`

Another fill to compare against.

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

.affineTransform(affineMatrix)→[ImageFill](https://cuttle.xyz/learn/reference/ImageFill)chainable

Transforms this image fill by the affine matrix `affineMatrix`.

`affineMatrix`

`[AffineMatrix](https://cuttle.xyz/learn/reference/AffineMatrix)`

.affineTransformWithoutTranslation(affineMatrix)→[ImageFill](https://cuttle.xyz/learn/reference/ImageFill)chainable

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

`affineMatrix`

`[AffineMatrix](https://cuttle.xyz/learn/reference/AffineMatrix)`