Class
AnimateTransform
public class AnimateTransform: Transform
Converts a set of images to a GIF file.
Relationships
Superclass
Transform:nodoc:
Initializers
Methods
delay(_:)
@discardableResult
func delay(_ value: Int) -> Self
Adds the delay option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Int |
The delay between frames (in milliseconds). Valid range: |
loop(_:)
@discardableResult
func loop(_ value: Int) -> Self
Adds the loop option.
Parameters
| Name | Type | Description |
|---|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| value | Int |
The new width in pixels. Valid range: |
height(_:)
@discardableResult
func height(_ value: Int) -> Self
Adds the height option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Int |
The new height in pixels. Valid range: |
fit(_:)
@discardableResult
func fit(_ value: TransformFit) -> Self
Adds the fit option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | TransformFit |
A |
align(_:)
@discardableResult
func align(_ value: TransformPosition) -> Self
Adds the align option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | TransformPosition |
A |
background(_:)
@discardableResult
func background(_ value: String) -> Self
Adds the background option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | String |
A color such as |