private void DrawLine(PointF[] points, int offset, int count) { if (!_lineBuffer.CanAdd(points, offset)) { CommitLine(); } _lineBuffer.Add(points, offset, count); }