6 jun
2017

How to resize UIImage programmatically to be like setting scaleAspectFill content mode?

I've found several examples to resize an image keeping its aspect ratio given a certain CGRect, or for example only the width like in this post. But those examples always create a new image that looks like in scaleAspectFit content mode. I would like to get one like in scaleAspectFill content mode but I don't find any example.

COMENTARIOS

DEJA TU COMENTARIO

© 2017 website by Rubit Corporation