Forum und email

imagecharup

(PHP 4, PHP 5)

imagecharup — Dibuja un carácter vertical

Descripción

bool imagecharup ( resource $im , int $font , int $x , int $y , string $c , int $col )

imagecharup() dibuja el caracter c verticalmente en la imagen identificada mediante im en las coordenadas x , y (arriba izquierda es 0,0) con el color col . Si la fuente es 1, 2, 3, 4 o 5 se usa una fuente predefinida.

Example#1 Ejemplo de imagecharup()

<?php

$im 
imagecreate(100100);

$string 'Note that the first letter is a N';

$bg imagecolorallocate($im255255255);
$black imagecolorallocate($im000);

// muestra una letra "Z" negra sobre fondo blanco
imagecharup($im31010$string$black);

header('Content-type: image/png');
imagepng($im);

?>

Vea también imagechar() y imageloadfont().