iphone Programming Glossary: squareimage
Slicing up a UIImage on iPhone http://stackoverflow.com/questions/248667/slicing-up-a-uiimage-on-iphone in an array. Here's my code CGImageRef originalImage resizedImage finalImage tmp float imgWidth imgHeight diff UIImage squareImage playImage NSMutableArray tileImgArray int r c originalImage image CGImage imgWidth image.size.width imgHeight image.size.height.. CGImageCreateWithImageInRect originalImage CGRectMake 0 floor diff 2 imgWidth imgWidth CGImageRelease originalImage squareImage UIImage imageWithCGImage resizedImage if squareImage.size.width squareImage.size.height NSLog @ image cutout error code.. 0 floor diff 2 imgWidth imgWidth CGImageRelease originalImage squareImage UIImage imageWithCGImage resizedImage if squareImage.size.width squareImage.size.height NSLog @ image cutout error code to return to main menu of app irrelevant here else float..
|