ResizeTransform
public class ResizeTransform : Transform
Resizes the image to a given width and height using a particular fit and alignment mode.
-
Initializes a
ResizeTransform
object.Declaration
Swift
public init()
-
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
An
TransformFit
value. -
Adds the
align
option.Declaration
Swift
@discardableResult func align(_ value: TransformAlign) -> Self
Parameters
value
An
TransformAlign
value.