iphone Programming Glossary: shadowcontext
Create new UIImage by adding shadow to existing UIImage http://stackoverflow.com/questions/2936443/create-new-uiimage-by-adding-shadow-to-existing-uiimage This is what I'm trying UIImage imageWithShadow CGColorSpaceRef colourSpace CGColorSpaceCreateDeviceRGB CGContextRef shadowContext CGBitmapContextCreate NULL self.size.width self.size.height 1 CGImageGetBitsPerComponent self.CGImage 0 colourSpace kCGImageAlphaPremultipliedLast.. self.CGImage 0 colourSpace kCGImageAlphaPremultipliedLast CGColorSpaceRelease colourSpace CGContextSetShadow shadowContext CGSizeMake 0 1 1 CGContextDrawImage shadowContext CGRectMake 0 0 self.size.width self.size.height self.CGImage CGImageRef.. CGColorSpaceRelease colourSpace CGContextSetShadow shadowContext CGSizeMake 0 1 1 CGContextDrawImage shadowContext CGRectMake 0 0 self.size.width self.size.height self.CGImage CGImageRef shadowedCGImage CGBitmapContextCreateImage shadowContext..
|