예제 #1
0
 public void Reset()
 {
     State    = new DrawingState();
     Polygons = new List <Polygon> {
         new Polygon()
     };
     State.CurrentPolygon = Polygons[Polygons.Count - 1];
     RepaintBitmap();
     pictureBox.Refresh();
 }
예제 #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;
 }