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"); }
public void BucketFill(IBucketFillParamerters fillParameters) { SaveState(); InnerBucketFill(fillParameters.Point, fillParameters.Color); }