¡@

Home 

2014/10/15 ¤U¤È 10:11:15

iphone Programming Glossary: mainviewcontentbitmapcontext

UIImage rounded corners

http://stackoverflow.com/questions/262156/uiimage-rounded-corners

self.CGImage Create CGImageRef of the main view bitmap content and then release that bitmap context CGImageRef mainViewContentBitmapContext CGBitmapContextCreateImage mainViewContentContext CGContextRelease mainViewContentContext CGImageRef maskImage UIImage imageNamed.. CGImageRef maskImage UIImage imageNamed @ Mask.png CGImage CGImageRef resizedImage CGImageCreateWithMask mainViewContentBitmapContext maskImage CGImageRelease mainViewContentBitmapContext convert the finished resized image to a UIImage UIImage theImage UIImage.. @ Mask.png CGImage CGImageRef resizedImage CGImageCreateWithMask mainViewContentBitmapContext maskImage CGImageRelease mainViewContentBitmapContext convert the finished resized image to a UIImage UIImage theImage UIImage imageWithCGImage resizedImage image is retained..

Creating mask with CGImageMaskCreate is all black (iphone)

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

self.CGImage Create CGImageRef of the main view bitmap content and then release that bitmap context CGImageRef mainViewContentBitmapContext CGBitmapContextCreateImage mainViewContentContext CGContextRelease mainViewContentContext convert the finished resized image.. mainViewContentContext convert the finished resized image to a UIImage UIImage theImage UIImage imageWithCGImage mainViewContentBitmapContext image is retained by the property setting above so we can release the original CGImageRelease mainViewContentBitmapContext..