BoringHeroes.ScreenReader.Tools.FindHorizontalLineLength C# (CSharp) Метод

FindHorizontalLineLength() публичный статический метод

public static FindHorizontalLineLength ( Bitmap bmp ) : int
bmp System.Drawing.Bitmap
Результат int
            public static int FindHorizontalLineLength(Bitmap bmp)
            {
                var count = 0;
                for (var x = 0; x < bmp.Width; x++)
                {
                    if (bmp.GetPixel(x, 0).ToArgb() == Color.Black.ToArgb())
                    {
                        if (count == 0) continue;
                        return count;
                    }
                    count++;
                }
                return count;
            }
ScreenReader.Tools