private void CheckSettings()
        {
            if (Brightness.ToDouble() < 0.0)
            {
                throw new InvalidOperationException("Invalid brightness specified, value must be zero or higher.");
            }

            if (EdgeAmount < 0 || double.IsInfinity(EdgeAmount) || double.IsNaN(EdgeAmount))
            {
                throw new InvalidOperationException("Invalid edge amount specified, value must be zero or higher.");
            }

            if (NumberOflevels < 2)
            {
                throw new InvalidOperationException("Invalid number of levels specified, value must be two or higher.");
            }

            if (Saturation.ToDouble() < 0.0)
            {
                throw new InvalidOperationException("Invalid saturation specified, value must be zero or higher.");
            }
        }