Canvas
public enum Canvas
The canvas
parameter allows you to increase the size of the canvas that surrounds an image.
See Canvas
-
Crop by width and height
Declaration
Swift
case `default`(width: UInt, height: UInt)
-
Crop by aspect ratio
Declaration
Swift
case aspectRatio(Size, ratio: String)
-
Crop sub region
Declaration
Swift
case region(width: UInt, height: UInt, xRegion: Double, yRegion: Double)
-
Crop and offset
Declaration
Swift
case offset(width: UInt, height: UInt, xOffset: Double, yOffset: Double)