I want to remove padding from top and bottom from generated Image
问题 I am generate image from specified text but there is some problem i facing with remove padding from top and bottom of generated image. I tried by changing string format while using DrawString but somehow i achieved to remove from left and right. private void button1_Click(object sender, EventArgs e) { Font font = new Font("Arial", 52, FontStyle.Regular); Image i = GetTextAsImage(textBox1.Text,400, font, Color.Black, Color.LightGray); i.Save("myImage.jpeg", ImageFormat.Jpeg); } private Image