Closed nishantdongare closed 9 years ago
I want to achieve ScaleAspectFit in toucan. Is it possible.
Sure is - You need to set the fit mode to Clip:
Clip
e.g. Toucan(image: portraitImage).resize(CGSize(width: 500, height: 500), fitMode: Toucan.Resize.FitMode.Clip).image
Toucan(image: portraitImage).resize(CGSize(width: 500, height: 500), fitMode: Toucan.Resize.FitMode.Clip).image
I want to achieve ScaleAspectFit in toucan. Is it possible.