jQuery元素屬性操作實(shí)例(設(shè)置、獲取及刪除元素屬性)
657
2024-02-19
(PHP 4, PHP 5)
imagecharup — 垂直地畫一個(gè)字符
$image
, int $font
, int $x
, int $y
, string $c
, int $color
)
imagecharup() 將字符
c
垂直地畫在
image
指定的圖像上,位于
x
,y
(圖像左上角為 0, 0),顏色為
color
。如果 font
為 1,2,3,4 或 5,則使用內(nèi)置的字體。
Example #1 imagecharup() 例子
<?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);
?>
參見(jiàn) imagechar() 和 imageloadfont()。
#免責(zé)聲明#
本站[綠夏技術(shù)導(dǎo)航]提供的一切軟件、教程和內(nèi)容信息僅限用于學(xué)習(xí)和研究目的;不得將上述內(nèi)容用于商業(yè)或者非法用途,否則,一切后果請(qǐng)用戶自負(fù)。本站信息來(lái)自網(wǎng)絡(luò)收集整理,版權(quán)爭(zhēng)議與本站無(wú)關(guān)。您必須在下載后的24個(gè)小時(shí)之內(nèi),從您的電腦或手機(jī)中徹底刪除上述內(nèi)容。如果您喜歡該程序或內(nèi)容,請(qǐng)支持正版,購(gòu)買注冊(cè),得到更好的正版服務(wù)。我們非常重視版權(quán)問(wèn)題,如有侵權(quán)請(qǐng)郵件[admin@lxwl520.com]與我們聯(lián)系進(jìn)行刪除處理。敬請(qǐng)諒解!