TH.Sharplet
10-14-2007, 09:07 PM
Hello,
I have the following code, that creates an image of a rectangle. Can an external image be inserted into my image/code?
<?php
$image = imagecreate(303, 182);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
imagerectangle($image, 0, 0, 302, 181, $black);
// output the image
header("Content-type: image/jpeg");
imagejpeg($image);
imagedestroy($image);
?>
I have the following code, that creates an image of a rectangle. Can an external image be inserted into my image/code?
<?php
$image = imagecreate(303, 182);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
imagerectangle($image, 0, 0, 302, 181, $black);
// output the image
header("Content-type: image/jpeg");
imagejpeg($image);
imagedestroy($image);
?>