Text wrapping in dynamic images

movers_4u

New Member
I have an image that is a title graphic. The problem is that i don't know how long the title is going to be, and the text fields don't wrap (or at least I don't know how to get them to). What I need to do is just that...have the text wrap if it's too long. Is there any built in functionality for this? Or do I have to do it the long, hard way.Dim objBmp As New Bitmap(200, 200)<BR>Dim objGraphics As Graphics = Graphics.FromImage(objBmp)<BR>objGraphics.DrawString("This is a long *** sentence that should wrap in the rectangle", New Font("Arial", 20), Brushes.Red, New RectangleF(0, 0, 200, 200))<BR>
 
Back
Top