AspectScaledToFitSizeFilter
public struct AspectScaledToFitSizeFilter : ImageFilter, Sizable
Scales an image from the center while maintaining the aspect ratio to fit within a specified size.
-
The size of the filter.
Declaration
Swift
public let size: CGSize -
Initializes the
AspectScaledToFitSizeFilterinstance with the given size.Declaration
Swift
public init(size: CGSize)Parameters
sizeThe size.
Return Value
The new
AspectScaledToFitSizeFilterinstance.
View on GitHub
Install in Dash
AspectScaledToFitSizeFilter Structure Reference