image creation functions
Does anyone know of a way to stop an image being created with php having the first colour as its background, for example i want to create an image with an alpha in it, i use....
$alpha = ImageCreateFromgif("alpha.gif");
ImageCopy ($img, $alpha, 0, 0, 0, 0, 120, 120);
to copy and paste in an image which already has an alpha and my php image has an alpha, now i need to draw onto the image but when i set the colour to draw for example...
$white = ImageColorAllocate($img, 255, 255, 255);
it of course sets the background to white by default!
an ideas anyone???
ok someone solved my problem elsewhere, all i need to do is set the white to transparent like so...
>$white = ImageColorAllocate($image, 255, 255, 255);
>$trans = ImageColorTransparent($image, $white);