AspectScaledToFillSizeFilter
public struct AspectScaledToFillSizeFilter : ImageFilter, Sizable
Scales an image from the center while maintaining the aspect ratio to fill a specified size. Any pixels that fall outside the specified size are clipped.
-
The size of the filter.
Declaration
Swift
public let size: CGSize -
Initializes the
AspectScaledToFillSizeFilterinstance with the given size.Declaration
Swift
public init(size: CGSize)Parameters
sizeThe size.
Return Value
The new
AspectScaledToFillSizeFilterinstance.
View on GitHub
Install in Dash
AspectScaledToFillSizeFilter Structure Reference