The simplest way to resize an UIImage ?
Posted
by micropsari
on Stack Overflow
See other posts from Stack Overflow
or by micropsari
Published on 2010-04-17T14:47:07Z
Indexed on
2010/04/17
14:53 UTC
Read the original article
Hit count: 279
Hello !
In my iPhone app, I take a picture with the camera, then I want to resize it to 290*390 pixels. I was using this method to resize the image :
UIImage *newImage = [image _imageScaledToSize:CGSizeMake(290, 390) interpolationQuality:1];
It works perfectly, but it's an undocumented function, so I can't use it anymore with iPhone OS4.
So... what is the simplest way to resize an UIImage ?
Thanks !
© Stack Overflow or respective owner