请输入您要查询的百科知识:

 

词条 imagecreate
释义

imagecreate

(PHP 3, PHP 4 )

imagecreate -- 新建一个基于调色板的图像

说明

resource imagecreate ( int x_size, int y_size)

imagecreate() 返回一个图像标识符,代表了一幅大小为 x_sizey_size 的空白图像。

推荐使用 imagecreatetruecolor()

imagecreate用于新建一个新的 GD 图像流并输出图像 <?php

header ("Content-type: image/png");

$im = @imagecreate (50, 100)

or die ("Cannot Initialize new GD image stream");

$background_color = imagecolorallocate ($im, 255, 255, 255);

$text_color = imagecolorallocate ($im, 233, 14, 91);

imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color);

imagepng ($im);

imagedestroy ($im);

?>

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 2:15:04