Crop

View as Markdown

Crop

The crop parameter allows you to remove pixels from an image.

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

Crop by width and height.

aspectRatio(Size, ratio: String, mode: Mode = .none) Crop

Crop by aspect ratio.

region(width: UInt, height: UInt, xRegion: Double, yRegion: Double, mode: Mode = .none) Crop

Crop sub region.

offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double, mode: Mode = .none) Crop

Crop and offset.