PHP: imagestringup - Manual

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, 26 Jan 2007

view this page in

# imagestringup

(PHP 3, PHP 4, PHP 5)

imagestringup -- Draw a string vertically

## Описание

bool imagestringup ( resource image, int font, int x, int y, string string, int color )

Draws a `string` vertically at the given coordinates.

## Список параметров

`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 (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont().

`x`

  x-coordinate of the upper left corner

`y`

  y-coordinate of the upper left corner

`sring`

  The string to be written

`color`

  A color identifier created with imagecolorallocate()

## Возвращаемые значения

Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

## Смотрите также

imageloadfont()

add a note User Contributed Notes
imagestringup
13-Dec-2002 05: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);
}`
add a note
imagesx imagestring

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST