Bloom.Edit.JpegWarningDialog.IsGreyScale C# (CSharp) Method

IsGreyScale() private static method

private static IsGreyScale ( Bitmap bmp ) : bool
bmp System.Drawing.Bitmap
return bool
        private static bool IsGreyScale(Bitmap bmp)
        {
            var sampleLinePercentages = new[] { 20, 50, 70 };
            return
                sampleLinePercentages.Any(sampleLine => GetIsGrey(bmp, (int)(bmp.Height * (sampleLine / 100.0))));
        }