18c03-1.php

来自「介绍PHP5的给类型函数应用」· PHP 代码 · 共 21 行

PHP
21
字号
<?php// Create a blank image to test with.$gfx = imagecreatetruecolor(200, 200);// Declare just two colors, a bright green, and blue$blue = imagecolorallocate($gfx, 0, 0, 255);$green = imagecolorallocate($gfx, 0, 255, 0);// Make the entire background greenimagefilledrectangle($gfx, 0, 0, 199, 199, $green);// Draw a blue circle on the image:imagefilledellipse($gfx, 100, 100, 30, 30, $blue);// Set the green color as transparent:imagecolortransparent($gfx, $green);// Output our sample as a PNGheader('Content-type: image/png');imagepng($gfx);?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?