Код: Выделить всё
using (var context = WorldImage.CreateDrawingContext()) {
Pen pen = new Pen(Brushes.Black);
context.DrawLine(pen, previousPoint, currentPoint);
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... t-clearing
Код: Выделить всё
using (var context = WorldImage.CreateDrawingContext()) {
Pen pen = new Pen(Brushes.Black);
context.DrawLine(pen, previousPoint, currentPoint);
}