CropTransform

public class CropTransform : Transform

Crops the image to a specified rectangle.

Lifecycle

  • Initializes a CropTransform object.

    Declaration

    Swift

    public init(x: Int, y: Int, width: Int, height: Int)

    Parameters

    x

    The starting point X coordinate.

    y

    The starting point Y coordinate.

    width

    The output image’s width.

    height

    The output image’s height.