-
Junior Member
Identification of Trasparent color
Hi all,
Can anybody tell me how to find given color is transparent or not?
$image=imagecreatefrompng("gans.png"); //transparent png image
$bcolor_at = ImageColorAt ($image,$i, $j);
I am using ImageColorAt function to get color at specified point ,now I just want to conform that "$bcolor" is trasparent color or istruecolor?
Please help me in this situation.
Thanks in Advance.
-Gans
-
Contributing Member
Re: Identification of Trasparent color
$bcolor is truecolor not a transperant color.
----------------
suresh
-
Junior Member
Re: Identification of Trasparent color
But Suresh,at given position pixel may be of transparent color no?
if we have provided x and y co-ordinates of image where there is transparency
what "ImageColorAt" function will return?
Thanks,
Gans
-
Contributing Member
Re: Identification of Trasparent color
If you have provided x and y co-ordinates of image where there is transparency then you got the color code either "Gray" or "White". Because you are using "ImageColorAt" function, it returns only the image colors. Not a Background color.
---------------------
suresh
-
Junior Member
Re: Identification of Trasparent color
ok..thank you very much..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules