Ejemplo n.º 1
0
 public void Reset()
 {
     State    = new DrawingState();
     Polygons = new List <Polygon> {
         new Polygon()
     };
     State.CurrentPolygon = Polygons[Polygons.Count - 1];
     RepaintBitmap();
     pictureBox.Refresh();
 }
Ejemplo n.º 2
0
 public WorkingArea(Bitmap bitmap, PictureBox pictureBox)
 {
     Bitmap   = bitmap;
     State    = new DrawingState();
     Polygons = new List <Polygon> {
         new Polygon()
     };
     State.CurrentPolygon = Polygons[Polygons.Count - 1];
     this.pictureBox      = pictureBox;
     pictureBox.Image     = bitmap;
 }