Jump to content

[SOLVED] GD: Testing a pixle to see if it's transparent?


Prismatic

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.