Beispiel #1
0
 public FloodFillContext(System.Drawing.Bitmap bitmap, PolygonsContainer data, Graphics.NullablePoint FillStartPoint,
     System.Drawing.Color borderColor, System.Drawing.Color fillColor, System.Drawing.Color backColor)
 {
     this.bitmap = bitmap;
     this.data = data;
     this.FillStartPoint = FillStartPoint;
     this.borderColor = borderColor;
     this.fillColor = fillColor;
     this.backColor = backColor;
 }
 protected void Initialize(FloodFillContext context)
 {
     this.bmp = context.bitmap;
     this.data = context.data;
     this.aBorderColor = context.borderColor.ToArgb();
     this.aFillColor = context.fillColor.ToArgb();
     this.aBackColor = context.backColor.ToArgb();
     this.fillColor = context.fillColor;
     this.backColor = context.backColor;
     this.borderColor = context.borderColor;
 }