I was wondering if there is a way to capture an UIImage
as it appears as-is viewed in an UIImageView
based on its contentMode
. For example, if I pass a 3:4
aspect ratio to a square UIImageView
, and use "Aspect Fit" as the contentMode
, then I'd expect to see white letterboxes in the left and right parts the image to fill out the square. Would it then be possible to take whatever appears and save it directly as an new UIImage
with the letter boxing?
Thanks!