iphone Programming Glossary: playimage
Slicing up a UIImage on iPhone http://stackoverflow.com/questions/248667/slicing-up-a-uiimage-on-iphone 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 diff.. 320.0 UIGraphicsBeginImageContext finalSize squareImage drawInRect CGRectMake 0 0 finalSize.width finalSize.height playImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext else playImage squareImage finalImage playImage CGImage.. 0 finalSize.width finalSize.height playImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext else playImage squareImage finalImage playImage CGImage tileImgArray NSMutableArray arrayWithCapacity 0 for int i 0 i 16 i r i 4 c i 4..
|