Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Image Text

  1. #1
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default Image Text



    -Ed
    EDTALKING


  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default



    -Ryan

  3. #3
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    lolz my bad
    EDTALKING


  4. #4
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Try Pixel2life

  5. #5
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    It's GD if i'm not corrected.
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  6. #6
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    lol yer

    so i got this yer:

    PHP Code:
    <?php
    header
    ('Content-type: image/png');
    $text $_GET['text'];
    $im imagecreatefrompng ("radio_statsbg.gif");
    $color imagecolorallocate($im000);
    $font 'BMRECEIPT.TTF';
    $fontsize 6;
    $size imagettfbbox($fontsize0$font$text); //calculate the pixel of the string
    $dx = (imagesx($im)) - (abs($size[2]-$size[0])) - 20//calculate the location to start the text
    imagettftext($im$fontsize0$dx13$color$font$text);
    imagepng($im);
    imagedestroy($im);
    ?>
    it wont work for me i get a weird error:

    <br /><b>Fatal error</b>: Call to undefined function: imagecreatefrompng() in <b>/home/anyhabbo/public_html/scripts/text.php</b> on line <b>4</b><br />
    I ALWAYS Get it for the imagecreate thing and it getting on my nerves coz its correct i belive
    Last edited by :Edzy; 18-02-2007 at 06:21 PM.
    EDTALKING


  7. #7
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    $im = imagecreatefrompng("radio_statsbg.gif");

    Make sure the extensions are correct.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  8. #8
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    still wont work

    its just the

    $im = imagecreatefrompng ("");

    on my host but why :S ?
    EDTALKING


  9. #9
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Do you actually have

    radio_statsbg.gif

    in the same folder as the php file?

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  10. #10
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    yes
    EDTALKING


Page 1 of 2 12 LastLast

Posting Permissions

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