private static double[] GenerateCharacterDefinition(char input)
{
string text = new string(new[] { input });
Bitmap image = new Bitmap(OutputWidth, OutputHeight);
Graphics graphics = Graphics.FromImage(image);
graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
graphics.FillRectangle(new SolidBrush(Color.White), new Rectangle(0, 0, image.Width, image.Height));
if (text == "2")
{
graphics.DrawString(text, characterFont, new SolidBrush(Color.Black), -2, 0);
}
else
{
graphics.DrawString(text, characterFont, new SolidBrush(Color.Black), -3, 0);
}
graphics.Flush();
graphics.Dispose();
return image.ToDoubles();
}