I want to resize or scale a image down by it's width is fixed. I have been searching all over the network, it's about resizing the image to new size by specifying new CGSize value. I only want to scale it down by its width is fixed, like 100px, and the height scale down and Maintain it's Aspect Ratio.
0
votes
1 Answers
0
votes
check this out and modify as per your needs.
http://code.developwithus.com/iphone/resize-image-in-iphone-sdk/
CGSize newSize = CGSizeMake(newWidth, ceil(newWidth * oldHeight / oldWidth));
- ipmcc