Prismatic Posted October 31, 2007 Share Posted October 31, 2007 How would I determine if a pixel is 100% transparent on a given image? Google fails me Quote Link to comment https://forums.phpfreaks.com/topic/75449-solved-gd-testing-a-pixle-to-see-if-its-transparent/ Share on other sites More sharing options...
Prismatic Posted October 31, 2007 Author Share Posted October 31, 2007 SOLVED! For anyone who wants to know http://www.php.net/imagecolorsforindex imagecolorsforindex — Get the colors for an index Will return an array of R, G, B values AND an Alpha channel representing the transparency of the pixel (127 = Fully Transparent) Similar to Array ( [red] => 255 [green] => 255 [blue] => 255 [alpha] => 127 ) That would be a fully transparent image Quote Link to comment https://forums.phpfreaks.com/topic/75449-solved-gd-testing-a-pixle-to-see-if-its-transparent/#findComment-381690 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.