NSScreencast Episode #32 Core Graphics: Gradients
Core Graphics: Gradients - NSScreencast
gradientのeffectを描画
- Core Graphics
- pure c library
- drawRect
- helper class
- CGContextRef context = UIGraphicsGetCurrentContext();
- drawLinearGradient
- CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
- CGRectGetMidX
- drawGlossyGradient
- __bridge cast
- CFRelease
- __bridge_transfer
- ARC
- CGContext
- CGContextSaveGState
- CGContextRestoreGState
- CGContextAddRect
- CGContextClip
- stroke
- CGContextSetStrokeColorWithColor
- CGContextSetLineWidth
- CGContextStrokeRect
bridge cast, CGContextとかある