AdvancedOCR.RectangularStep.RectangularStep C# (CSharp) Method

RectangularStep() public method

public RectangularStep ( int width, int height, IList upstream ) : System
width int
height int
upstream IList
return System
        public RectangularStep(int width, int height, IList<RectangularStep> upstream)
            : base(width * height, upstream == null ? null : upstream.ToList<Step>())
        {
            if (width <= 0 || height <= 0) throw new ArgumentException();
            this.Width = width;
            this.Height = height;
            if (upstream != null)
                this.Upstream = new ReadOnlyCollection<RectangularStep>(upstream);
            else
                this.Upstream = null;
        }