Query: imagecharup
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGECHARUP(3) 1 IMAGECHARUP(3) imagecharup - Draw a character verticallySYNOPSISbool imagecharup (resource $image, int $font, int $x, int $y, string $c, int $color)DESCRIPTIONDraws the character $c vertically at the specified coordinate on the given $image.PARAMETERSo $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $ 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(3). o $x - x-coordinate of the start. o $y - y-coordinate of the start. o $c - The character to draw. o $color - A color identifier created with imagecolorallocate(3).RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 imagecharup(3) example <?php $im = imagecreate(100, 100); $string = 'Note that the first letter is a N'; $bg = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0); // prints a black "Z" on a white background imagecharup($im, 3, 10, 10, $string, $black); header('Content-type: image/png'); imagepng($im); ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagecharup()SEE ALSOimagechar(3), imageloadfont(3). PHP Documentation Group IMAGECHARUP(3)
Related Man Pages |
---|
imagecolortransparent(3) - php |
imagechar(3) - php |
imageellipse(3) - php |
imagefilledrectangle(3) - php |
imagestringup(3) - php |
Similar Topics in the Unix Linux Community |
---|
Changing OSX Terminal Man Page Colors |