jjzjj

CGContextAddPath

全部标签

objective-c - iOS 核心图形 : Draw ONLY shadows of a CGPath

我正在使用CoreGraphics在iOS5中绘制一条简单的路径:CGMutablePathRefpath=CGPathCreateMutable();CGPathMoveToPoint(path,NULL,center.x,topMargin);CGPathAddLineToPoint(path,NULL,center.x+20,topMargin+50);CGPathAddLineToPoint(path,NULL,center.x,topMargin+40);CGPathAddLineToPoint(path,NULL,center.x-20,topMargin+50);CGPa

objective-c - iOS 核心图形 : Draw ONLY shadows of a CGPath

我正在使用CoreGraphics在iOS5中绘制一条简单的路径:CGMutablePathRefpath=CGPathCreateMutable();CGPathMoveToPoint(path,NULL,center.x,topMargin);CGPathAddLineToPoint(path,NULL,center.x+20,topMargin+50);CGPathAddLineToPoint(path,NULL,center.x,topMargin+40);CGPathAddLineToPoint(path,NULL,center.x-20,topMargin+50);CGPa