I am getting some unexpected results from attempts to use transparency in GD.
I have been playing around with the following code, using various options but to no avail
Picture is not transparent.
This is part of a much bigger picture but I would have thought this function would be one of the easier ones.
Am I missing something obvious here?
I also need transparency in a rotated image but the same issue may be resolved here.
Keith
I have been playing around with the following code, using various options but to no avail
Code:
// Create an image
$FullPic = ImageCreateTrueColor(640,640);
// create a color
$Trans = imagecolorallocate($FullPic, 200,200,200);
// Fill it with transparent colour
imagefilledrectangle ( $FullPic , 0 , 0 , 640, 640 , $Trans );
// Set previous colour to transparent
imagecolortransparent($FullPic, $Trans);
// Sample Full Pic
ImageGIF($FullPic);
This is part of a much bigger picture but I would have thought this function would be one of the easier ones.
Am I missing something obvious here?
I also need transparency in a rotated image but the same issue may be resolved here.
Keith