使用PHP在Borer中插入图像

时间:2016-03-04 17:46:15

标签: php

如何使用php在黑色边框内插入图像?谢谢大家的帮助! 这就是我所拥有的:

$image = imagecreatetruecolor(100, 80);//creates canvas and sets size
imagefilledrectangle($image, 0,0,100,80, $white);
imageline($image, 5,5,5,75, $black);//draws black vertical line
imageline($image, 5,5,95,5, $black);//draws black horizontal line
imageline($image, 5,75,95,75, $black);//draws black horizontal line
imageline($image, 95,5,95,75, $black);//draws black vertical line
//***I now want to insert an image inside the black line border***///  
imagegif($image, "marked5.gif");//creates image
echo "<img src='marked5.gif'>";//prints out my image

0 个答案:

没有答案