Example #1
0
 public void BucketFill(IBucketFillParamerters fillParamerters)
 {
     //Contract.Requires<OutOfBoundsException>(!PointIsOutOfBounds(fillParameters.Point), "The target point is out of the canvas boundaries");
     Contract.Requires <OutOfBoundsException>(!fillParamerters.Point.IsPointOutOfBounds(this),
                                              "The target point is out of the canvas boundaries");
 }
Example #2
0
        public void BucketFill(IBucketFillParamerters fillParameters)
        {
            SaveState();

            InnerBucketFill(fillParameters.Point, fillParameters.Color);
        }