Interfaces

ImageShaderProps

An image as the paint source for any shape: put it inside a <Paint> or directly under the shape, the way a gradient goes.

Properties

fit?

optional fit?: Fit;

How the image fits rect. Ignored without one. Defaults to 'contain'.


image

image: ImageLike | null;

rect?

optional rect?: SrcRect;

Destination rect the image is fitted into; omit to sample 1:1.


sampling?

optional sampling?: Sampling;

tx?

optional tx?: TileMode;

How the image repeats outside its bounds. Both default to 'clamp'.


ty?

optional ty?: TileMode;

On this page