y lo que me gustaria, si me pueden ayudar, o conocen algun ejemplo ya hecho,
es agregarle un list box
para cambios de fuente
cambio de color de fuente
tamaño de fuente
y fondo de color
Código PHP :
<?php
if(isset($_GET['txt']))
{
$txt=$_GET['txt'];
}
?>
<form name="">
<input type="text" name="txt" id="get-text" value="" required>
<input type="submit" value="View Output">
</form>
<img src="image.php?img=<?php echo convATandDot($txt); ?>" border="0">
<?php
function convATandDot($currenttext){
$old = array('@','.');
$new = array('__shariar__','__dot__');
$convTEXT= str_replace($old, $new, $currenttext);
return $convTEXT;
}
?>Código PHP :
<?php
if(!isset($_GET['img']))
{
exit();
}
header ("Content-type: image/png");
$string = $_GET['img'];
$string = convATandDot($string);
$font = 100;
$width = ImageFontWidth($font) * strlen($string);
$height = ImageFontHeight($font)+2;
$im = @imagecreate ($width,$height);
$background_color = imagecolorallocate ($im, 255, 255, 255); //white background
$text_color = imagecolorallocate ($im, 0, 0,0);//black text
imagestring ($im, $font, 0, 0, $string, $text_color);
imagepng ($im);
function convATandDot($currenttext){
$old = array('__shariar__','__dot__');
$new = array('@','.');
$convTEXT= str_replace($old, $new, $currenttext);
return $convTEXT;
}
?>
agradezco a quien pueda ayudarme
muchas gracias
