2013-04-09 49 views
0

虽然我试图在iPad视图上画交叉线,但它擦除了前一行的重叠部分。我正在使用setNeedsDisplayInRect()方法刷新绘图。请建议我解决这个问题。ipad丢失重叠注释

我写了这个代码是

我使用下面的代码来绘制:

context.MoveTo (penVertices [0].X, penVertices [0].Y); 

for (int i = 1; i < penVertices.Count; i++) { 

context.AddLineToPoint (penVertices [i].X, penVertices [i].Y); 

} 
context.StrokePath(); 

而且使用下面的代码,以显示线条

SetNeedsDisplayInRect(RectangleF.FromLTRB(minX - (lineWidth/2), minY - (lineWidth/2), maxX + (lineWidth/2), maxY + (lineWidth/2))); 

回答

0

喜为了避免在重叠位置擦除先前制作的注释,使用路径来绘制注释而不是简单的上下文。