Php Imagealphablending
# PHP imagealphablending - Set Image Blending Mode
[PHP Image Processing](#)
imagealphablending β Set the blending mode for an image.
### Syntax
bool imagealphablending ( resource $image , bool $blendmode )
imagealphablending() allows two different drawing modes on a true color image.
In blending mode, the alpha channel color components are provided to all drawing functions, such as imagesetpixel(), to determine to what extent the underlying color should be allowed to shine through. As a result, GD automatically mixes the existing color at that point with the brush color and stores the result in the image. The resulting pixel is opaque.
In non-blending mode, the brush color is copied along with its alpha channel information, replacing the destination pixel. Blending mode is not available when drawing palette images.
If blendmode is TRUE, blending mode is enabled, otherwise it is disabled. Returns TRUE on success, or FALSE on failure.
### Parameters
* **image** An image resource returned by image creation functions (e.g., imagecreatetruecolor()).
* **blendmode** Whether blending mode is enabled or not. Defaults to TRUE for true color images, otherwise FALSE.
### Return Value
Returns TRUE on success, or FALSE on failure.
### Example
[PHP Image Processing](#)
YouTip