Remove top and bottom padding from Text drawn on an Image
I propose you a slightly different method, using the GraphicsPath class to both measure and draw the text on a Bitmap object. The advantage is that the GraphicsPath class reports the actual coordinates where the object(s) that it contains will be drawn and also the size of the text, in relation to a specific Font. … Read more