Home >Backend Development >PHP Tutorial >PHP 给图片加边框

PHP 给图片加边框

WBOY
WBOYOriginal
2016-06-23 13:55:062709browse

header("Content-type: image/png");$im = @imagecreatetruecolor(282, 282) or die("Cannot Initialize new GD image stream");imagecopy($im, imagecreatefrompng('C02D9CE4B4B6E3F6DF8D9DB734.png'), 1,1,0,0,281,281);imagepng($im, 'xxx.png');imagedestroy($im);

添加前:

添加后:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn