¡@

Home 

2014/10/15 ¤U¤È 10:09:02

iphone Programming Glossary: finalsize

Slicing up a UIImage on iPhone

http://stackoverflow.com/questions/248667/slicing-up-a-uiimage-on-iphone

code to return to main menu of app irrelevant here else float newDim squareImage.size.width if newDim 320.0 CGSize finalSize CGSizeMake 320.0 320.0 UIGraphicsBeginImageContext finalSize squareImage drawInRect CGRectMake 0 0 finalSize.width finalSize.height.. newDim squareImage.size.width if newDim 320.0 CGSize finalSize CGSizeMake 320.0 320.0 UIGraphicsBeginImageContext finalSize squareImage drawInRect CGRectMake 0 0 finalSize.width finalSize.height playImage UIGraphicsGetImageFromCurrentImageContext.. CGSize finalSize CGSizeMake 320.0 320.0 UIGraphicsBeginImageContext finalSize squareImage drawInRect CGRectMake 0 0 finalSize.width finalSize.height playImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext else playImage squareImage..

Creating mask with CGImageMaskCreate is all black (iphone)

http://stackoverflow.com/questions/633051/creating-mask-with-cgimagemaskcreate-is-all-black-iphone

UIImage imageNamed @ my_mask.jpg UIImage ShapesBase UIImage imageNamed @ largerimage.jpg UIImage MaskImageFull CGSize finalSize CGSizeMake 480.0 320.0 UIGraphicsBeginImageContext finalSize ShapesBase drawInRect CGRectMake 0 0 480 320 MaskImage drawInRect.. imageNamed @ largerimage.jpg UIImage MaskImageFull CGSize finalSize CGSizeMake 480.0 320.0 UIGraphicsBeginImageContext finalSize ShapesBase drawInRect CGRectMake 0 0 480 320 MaskImage drawInRect CGRectMake 150 50 250 250 MaskImageFull UIGraphicsGetImageFromCurrentImageContext..