Filestack Documentation

Class Resize​Transform

public class ResizeTransform: Transform  

Resizes the image to a given width and height using a particular fit and alignment mode.

ResizeTransform ResizeTransform Transform Transform ResizeTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a ResizeTransform object.

Methods

width(_:​)

@discardableResult
    func width(_ value: Int) -> Self  

Adds the width option.

Parameters

value Int

The new width in pixels. Valid range: 1...10000

height(_:​)

@discardableResult
    func height(_ value: Int) -> Self  

Adds the height option.

Parameters

value Int

The new height in pixels. Valid range: 1...10000

fit(_:​)

@discardableResult
    func fit(_ value: TransformFit) -> Self  

Adds the fit option.

Parameters

value Transform​Fit

An TransformFit value.

align(_:​)

@discardableResult
    func align(_ value: TransformAlign) -> Self  

Adds the align option.

Parameters

value Transform​Align

An TransformAlign value.