Filestack Documentation

Class Crop​Transform

public class CropTransform: Transform  

Crops the image to a specified rectangle.

CropTransform CropTransform Transform Transform CropTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init(x:​y:​width:​height:​)

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

Initializes a CropTransform object.

Parameters

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.