CSPspEmu.Hle.Formats.Font.GlyphSymbol.GetBitmap C# (CSharp) Method

GetBitmap() public method

public GetBitmap ( ) : Bitmap
return System.Drawing.Bitmap
        public Bitmap GetBitmap()
        {
            if (Width == 0 || Height == 0) return new Bitmap(1, 1);
            Bitmap Bitmap = new Bitmap((int)Width, (int)Height);
            for (int y = 0, n = 0; y < Height; y++)
            {
                for (int x = 0; x < Width; x++, n++)
                {
                    byte c = Data[n];
                    //Bitmap.SetPixel(x, y, Color.FromArgb(Data[n], 0xFF, 0xFF, 0xFF));
                    Bitmap.SetPixel(x, y, Color.FromArgb(0xFF, c, c, c));
                }
            }
            return Bitmap;
        }