English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
imagecharup — 수직으로 문자를 그립니다.
bool imagecharup ( resource $image , int $font , int $x , int $y , string $c , int $color )
imagecharup()는 문자 c를 이미지 지정된 이미지에 수직으로 그립니다. x, y(이미지 왼쪽 상단이 0, 0)에 위치하며, color로 색상이됩니다. font가 1,2,3,4 또는 5그런 경우 내장 글꼴을 사용합니다.
<?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); // 흰 배경 위에 검은색으로 "Z"를 출력합니다. imagecharup($im, 3, 10, 10, $string, $black); header('Content-type: image/png'); imagepng($im); ?>
위 예제의 출력 결과 이미지는 다음과 같습니다:
imagechar() 평행선으로 문자를 그립니다.
imageloadfont() 로 새로운 글꼴을 로드합니다.