PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagesx> <imagestring
Last updated: Fri, 11 Apr 2008

view this page in

imagestringup

(PHP 4, PHP 5)

imagestringup — Dibujar una cadena verticalmente

Descripción

bool imagestringup ( resource $imagen , int $fuente , int $x , int $y , string $cadena , int $color )

Dibuja una cadena verticalmente en las coordenadas dadas.

Lista de parámetros

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

font

Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont().

x

coordenada x de la esquina superior izquierda

y

coordenada y de la esquina superior izquierda

cadena

La cadena a ser escrita

color

Un identificador de color creado con imagecolorallocate()

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Ver también



add a note add a note User Contributed Notes
imagestringup
13-Dec-2002 02:19
function imagestringdown(&$image, $font, $x, $y, $s, $col)
{
    $width = imagesx($image);
   $height = imagesy($image);
   
    $text_image = imagecreate($width, $height);

   $white = imagecolorallocate ($text_image, 255, 255, 255);
   $black = imagecolorallocate ($text_image, 0, 0, 0); 

    $transparent_colour = $white;
   if ($col == $white)
      $transparent_color = $black;
 
   imagefill($text_image, $width, $height, $transparent_colour);
   imagecolortransparent($text_image, $transparent_colour);
 
   imagestringup($text_image, $font, ($width - $x), ($height - $y), $s, $col);
   imagerotate($text_image, 180.0, $transparent_colour);
 
   imagecopy($image, $text_image, 0, 0, 0, 0, $width, $height);
}

imagesx> <imagestring
Last updated: Fri, 11 Apr 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites