2013-07-03 4 views

답변

2

당신은있는 UIImageView를 확장하는 방법 내부과 같이 선을 그릴 수 있습니다

public void DrawLine() 
{ 
    CGContext context = UIGraphics.GetCurrentContext(); 
    context.SetLineWidth (4); 
    UIColor.Clear.SetFill(); 
    UIColor.Black.SetStroke(); 
    currentPath = new CGPath(); 
    currentPath.AddLines (points.ToArray()); 
    context.AddPath (currentPath);  
    context.DrawPath (CGPathDrawingMode.Stroke); 
    context.SaveState(); 
} 

점 PointF 개체의 목록입니다.

+0

잘 작동합니다 ... –