Class
CropTransform
public class CropTransform: Transform
Crops the image to a specified rectangle.
Relationships
Superclass
Transform
:nodoc:
Initializers
init(x:y:width:height:)
public init(x: Int, y: Int, width: Int, height: Int)
Initializes a CropTransform
object.
Parameters
Name | Type | Description |
---|---|---|
x | Int |
The starting point X coordinate. |
y | Int |
The starting point Y coordinate. |
width | Int |
The output image's width. |
height | Int |
The output image's height. |