I have such model of image https://i.stack.imgur.com/ulLTS.jpg
I need to print text in the yellow box.
The problem is how to enable word wrap in graphics DrawString? My code:
using (Graphics g = Graphics.FromImage(pictureBox1.Image))
{
Font drawFont = new Font("Arial", 16);
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawString("test text; test text;test text;test text", drawFont, drawBrush, new Point(240, 250));
}
pictureBox1.Image.Save("Image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
text that I print overflows