private void BresenhamBtn_Click(object sender, EventArgs e) { g.Clear(Color.White); al = new Center(); GetPointValue(); DrawLine(Brushes.Red); }
private void DDABtn_Click(object sender, EventArgs e) { g.Clear(Color.White); al = new DDA(); GetPointValue(); DrawLine(Brushes.Black); }
public TriangleManager(ICustomBitmap bitmap) : base(bitmap) { _triangles = new List <TriangleModel>(); _bresenhamLine = new BresenhamLine(); _lastPreviewPoints = new HashSet <IBPoint>(); }
public PenLineManager(ICustomBitmap bitmap) : base(bitmap) { _penLines = new List <PenLine>(); _bresenhamLine = new BresenhamLine(); }
public StraightLineManager(ICustomBitmap bitmap) : base(bitmap) { _penLines = new List <PenLine>(); _bresenhamLine = new BresenhamLine(); _lastPreviewPoints = new HashSet <IBPoint>(); }