Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP imagechar - Write a Horizontal Character

PHP imagechar - Write a Horizontal Character

PHP Image ProcessingPHP Image Processing

imagechar — Writes a horizontal character.

Syntax



bool imagechar ( resource $image , int $font , int $x , int $y , string $c , int $color )

imagechar() draws the first character of the string c into the image specified by image, with its top-left corner at x, y (with the top-left corner of the image as 0, 0), and in the color color. If font is 1, 2, 3, 4, or 5, the built-in font is used (a larger number corresponds to a larger font).

Example





The image of the output result of the example above is as follows:

PHP Image ProcessingPHP Image Processing