AnimateTransform
public class AnimateTransform : Transform
Converts a set of images to a GIF file.
-
Initializes an
AnimateTransform
object.Declaration
Swift
public init()
-
Adds the
delay
option.Declaration
Swift
@discardableResult func delay(_ value: Int) -> Self
Parameters
value
The delay between frames (in milliseconds). Valid range:
1...1000
-
Adds the
loop
option.Declaration
Swift
@discardableResult func loop(_ value: Int) -> Self
Parameters
value
How many times images should be displayed. Use 0 to loop forever.
-
Adds the
width
option.Declaration
Swift
@discardableResult func width(_ value: Int) -> Self
Parameters
value
The new width in pixels. Valid range:
1...10000
-
Adds the
height
option.Declaration
Swift
@discardableResult func height(_ value: Int) -> Self
Parameters
value
The new height in pixels. Valid range:
1...10000
-
Adds the
fit
option.Declaration
Swift
@discardableResult func fit(_ value: TransformFit) -> Self
Parameters
value
A
TransformFit
value. -
Adds the
align
option.Declaration
Swift
@discardableResult func align(_ value: TransformPosition) -> Self
Parameters
value
A
TransformPosition
value. -
Adds the
background
option.Declaration
Swift
@discardableResult func background(_ value: String) -> Self
Parameters
value
A color such as
transparent
,black
,white
,red
, etc.