iphone Programming Glossary: maskedcontextref
Rounded Corners on UIImage http://stackoverflow.com/questions/205431/rounded-corners-on-uiimage dstRect CGRect interiorRect CGRectInset dstRect radius radius UIGraphicsBeginImageContext dstRect.size CGContextRef maskedContextRef UIGraphicsGetCurrentContext CGContextSaveGState maskedContextRef CGMutablePathRef borderPath CGPathCreateMutable CGPathAddArc.. UIGraphicsBeginImageContext dstRect.size CGContextRef maskedContextRef UIGraphicsGetCurrentContext CGContextSaveGState maskedContextRef CGMutablePathRef borderPath CGPathCreateMutable CGPathAddArc borderPath NULL CGRectGetMinX interiorRect CGRectGetMinY interiorRect.. interiorRect CGRectGetMaxY interiorRect radius PNDegreeToRadian 90.0 PNDegreeToRadian 180.0 NO CGContextBeginPath maskedContextRef CGContextAddPath maskedContextRef borderPath CGContextClosePath maskedContextRef CGContextClip maskedContextRef self drawInRect..
|