CaptchaImage.CaptchaImage.SetDimensions C# (CSharp) Method

SetDimensions() private method

Sets the image width and height.
private SetDimensions ( int width, int height ) : void
width int
height int
return void
        private void SetDimensions(int width, int height)
        {
            // Check the width and height.
            if (width <= 0)
                throw new ArgumentOutOfRangeException("width", width, "Argument out of range, must be greater than zero.");
            if (width <= 0)
                throw new ArgumentOutOfRangeException("height", height, "Argument out of range, must be greater than zero.");
            this.width = width;
            this.height = height;
        }