FFXIVAPP.Hooker.Engine.DXFont.GetCharMinX C# (CSharp) Method

GetCharMinX() private method

private GetCharMinX ( Bitmap charBitmap ) : int
charBitmap System.Drawing.Bitmap
return int
        private int GetCharMinX(Bitmap charBitmap)
        {
            var width = charBitmap.Width;
            var height = charBitmap.Height;

            for (var x = 0; x < width; ++x)
            {
                for (var y = 0; y < height; ++y)
                {
                    Color color;

                    color = charBitmap.GetPixel(x, y);
                    if (color.A > 0)
                    {
                        return x;
                    }
                }
            }

            return 0;
        }