"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello Nick,
>
> Monday, July 22, 2002, 8:47:39 PM, you wrote:
>
> N> i get php to allocate a colour then make it transparent using
> N> imagecolortransparent()
>
> N> instead of turning it transparent it becomes black.
>
> N> Is it something i'm doing wrong? can anyone help me?
>
> N> thanx in advance
>
> Post a bit of the code so we can see what you are doing
>
> --
> Tom
>

$im = imagecreate($size, 21);

$bgcolour =
imagecolorallocate($im,hexdec(substr($table[bg],0,2)),hexdec(substr($table[b
g],2,2)),hexdec(substr($table[bg],4,2)));
$fontcolour =
imagecolorallocate($im,hexdec(substr($table[fg],0,2)),hexdec(substr($table[f
g],2,2)),hexdec(substr($table[fg],4,2)));

if ($table[bg] == "no") {
 $trans = imagecolortransparent ($im,$bgcolour);
}



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to