Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replace Previous Uploaded Image

    Using the GD Library, how do I display an external image, on the canvas, whilst displaying the following centered text.

    Text to Display: "Image 1"

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    See this and the examples they show:
    http://us3.php.net/imagettftext

    The nice thing about using TTF is that you can provide your
    own true-type-font file, so the text can be any font you wish.

    They have examples that explain about centering text, and
    some discussion on multiple lines of text (which is more difficult).

    You didn't provide an image for us to play with, or any indication
    of the font you would like to use, or font size, font color, etc....
    so we can't provide much more than a link to the GD website.


  •  

    Posting Permissions

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