K
Kurda Yon
Hi,
to make a part of an image transparent I use the following commands:
imagecolortransparent($image, $color_1);
After that command all parts of an image, which are "colored" by
$color_1, will be transparent. It means that If I put such an image as
a table-background, I will see the page-background behind the
transparent parts of the image.
However, in the above way, I can create only absolutely transparent
"colors" and I would like to have "partially" transparent colors. I
tried to use
$color_1 = imagecolorallocatealpha($image, 255, 0, 0, 60);
In theory it should create the red color with the level of
transparancy equal to 60. However, because of some reasons, it does
not work. I cannot see anything through this red color. Or to be more
precise, I can see some objects through this color ONLY if these
objects are part of the image. But image itself is not transparent.
Does anybody know how to overcome this problem and why it appears?
Thank you in advance.
to make a part of an image transparent I use the following commands:
imagecolortransparent($image, $color_1);
After that command all parts of an image, which are "colored" by
$color_1, will be transparent. It means that If I put such an image as
a table-background, I will see the page-background behind the
transparent parts of the image.
However, in the above way, I can create only absolutely transparent
"colors" and I would like to have "partially" transparent colors. I
tried to use
$color_1 = imagecolorallocatealpha($image, 255, 0, 0, 60);
In theory it should create the red color with the level of
transparancy equal to 60. However, because of some reasons, it does
not work. I cannot see anything through this red color. Or to be more
precise, I can see some objects through this color ONLY if these
objects are part of the image. But image itself is not transparent.
Does anybody know how to overcome this problem and why it appears?
Thank you in advance.