Filestack Documentation

Class Animate​Transform

public class AnimateTransform: Transform  

Converts a set of images to a GIF file.

AnimateTransform AnimateTransform Transform Transform AnimateTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes an AnimateTransform object.

Methods

delay(_:​)

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

Adds the delay option.

Parameters

value Int

The delay between frames (in milliseconds). Valid range: 1...1000

loop(_:​)

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

Adds the loop option.

Parameters

value Int

How many times images should be displayed. Use 0 to loop forever.

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

A TransformFit value.

align(_:​)

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

Adds the align option.

Parameters

value Transform​Position

A TransformPosition value.

background(_:​)

@discardableResult
    func background(_ value: String) -> Self  

Adds the background option.

Parameters

value String

A color such as transparent, black, white, red, etc.