iPadビューで十字線を引こうとしているのですが、前の線と重なった部分を消してしまいます。setNeedsDisplayInRect() メソッドを使用して図面を更新しています。この問題を克服するために私に提案してください。
私が書いたコードはこれです
以下のコードを使用して描画しています。
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)));