Class
ResizeTransform
public class ResizeTransform: Transform
Resizes the image to a given width and height using a particular fit and alignment mode.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
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 |
An |
align(_:)
@discardableResult
func align(_ value: TransformAlign) -> Self
Adds the align
option.
Parameters
Name | Type | Description |
---|---|---|
value | TransformAlign |
An |