search for in the  
<imagecolorexactimagecolormatch>
Last updated: Thu, 19 May 2005

imagecolorexactalpha

(PHP 4 >= 4.0.6, PHP 5)

imagecolorexactalpha -- Get the index of the specified color + alpha

Description

int imagecolorexactalpha ( resource image, int red, int green, int blue, int alpha )

Returns the index of the specified color+alpha in the palette of the image.

If the color does not exist in the image's palette, -1 is returned.

Note: This function requires GD 2.0.1 or later.

See also imagecolorclosestalpha().



User Contributed Notes
imagecolorexactalpha
phpdoc-comment at aditus dot nu
08-Nov-2002 12:01
What might be misleading in the docs is that if the specified color + alpha channel does not exist it will be created. So if you like to use an alpha channel in your image enable alpha blending and then create you color using this method.

<imagecolorexactimagecolormatch>
 Last updated: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT