PHP의 imagecharup은 - 수직으로 문자를 그립니다
imagecharup - 수직으로 문자를 그립니다.
문법
bool imagecharup ( resource $image , int $font , int $x , int $y , string $c , int $color )
imagecharup ()가 X에있는 지정된 이미지의 이미지에 수직으로 된 c 문자를 그릴 것, y를, 색상은 색상 (왼쪽 0, 0)입니다. 글꼴은 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 ()는 새로운 폰트를로드합니다.