Canvas

View as Markdown

Canvas

The canvas parameter allows you to increase the size of the canvas that surrounds an image.

NameTypeDescription
default(width: UInt, height: UInt) Canvas

Crop by width and height.

aspectRatio(Size, ratio: String) Canvas

Crop by aspect ratio.

region(width: UInt, height: UInt, xRegion: Double, yRegion: Double) Canvas

Crop sub region.

offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double) Canvas

Crop and offset.