Help for this page

Select Code to Download


  1. or download this
    # Centre text components on image
    my $colour    = $full->colorAllocate(0, 0, 0);
    ...
    @bounds        = new GD::Image->stringFT($colour, "Image/watermark.ttf
    +", 95, 0.18, 0, 0, $copyright); 
    $left       = ($full->width() / 2) - (($bounds[2] - $bounds[0]) / 2) +
    + 5;
    $full->stringFT($colour, "Image/watermark.ttf", 95, 0.18, $left, $top 
    ++ 160, $copyright_text);