PHP 忒聊
綴豖
ヶ輛
imagecreate
(PHP 3, PHP 4)
Description
imagecreate() returns an image identifier representing a blank image of size x_size by y_size.
瞰赽 1. Creating a new GD image stream and outputting an image.
?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);?
綴豖
れ萸
ヶ輛
imagecopyresized
奻珨撰
imagecreatefromgd2