Code:
<?php
header("Content-Type: image/PNG");
$image = ImageCreateFromPNG("test.png");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$font = 'arial.ttf';
$fontSize = "10";
$fontRotation = "0";
if (isset($_GET['line1'])) {
$line1 = $_GET['line1'];
}
if (isset($_GET['line2'])) {
$line1 = $_GET['line2'];
}
if (isset($_GET['line3'])) {
$line1 = $_GET['line3'];
}
if (isset($_GET['line4'])) {
$line1 = $_GET['line4'];
}
ImageTTFText($image, $fontSize, $fontRotation, 12, 24, $colorShadow, $font, $line1);
ImageTTFText($image, $fontSize, $fontRotation, 10, 20, $color, $font, $font, $line1);
ImageTTFText($image, $fontSize, $fontRotation, 12, 24, $colorShadow, $font, $line2);
ImageTTFText($image, $fontSize, $fontRotation, 10, 20, $color, $font, $font, $line2);
ImageTTFText($image, $fontSize, $fontRotation, 12, 24, $colorShadow, $font, $line3);
ImageTTFText($image, $fontSize, $fontRotation, 10, 20, $color, $font, $font, $line3);
ImageTTFText($image, $fontSize, $fontRotation, 12, 24, $colorShadow, $font, $line4);
ImageTTFText($image, $fontSize, $fontRotation, 10, 20, $color, $font, $font, $line4);
ImagePng ($image);
imagedestroy($image);
?>
Bookmarks