Drawing a Long String on to a Bitmap results in Drawing Issues
问题 I'm working with drawing a long string to a bitmap (talking more than a million characters), including multiline characters \r\n , written by a StringBuilder . My Text to Bitmap code is as follows: public static Bitmap GetBitmap(string input, Font inputFont, Color bmpForeground, Color bmpBackground) { Image bmpText = new Bitmap(1, 1); try { // Create a graphics object from the image. Graphics g = Graphics.FromImage(bmpText); // Measure the size of the text when applied to image. SizeF