Text wrapping in dynamic images

Results 1 to 2 of 2

Thread: Text wrapping in dynamic images

  1. #1
    Join Date
    Dec 1969
    Posts
    116

    Default Text wrapping in dynamic images

    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.

  2. #2
    Join Date
    Dec 1969
    Posts
    2,885

    Default RE: Text wrapping in dynamic images

    Dim objBmp As New Bitmap(200, 200)<BR>Dim objGraphics As Graphics = Graphics.FromImage(objBmp)<BR>objGraphics.DrawStri ng("This is a long *** sentence that should wrap in the rectangle", New Font("Arial", 20), Brushes.Red, New RectangleF(0, 0, 200, 200))<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •