970_90

Tuesday, 2 October 2012

imagealphablending - Set the blending mode for an image

bool imagealphablending ( resource $image , bool $blendmode )
Set the blending mode for an image
imagealphablending() allows for two different modes of drawing on truecolor images. In blending mode, the alpha channel component of the color supplied to all drawing function, such as imagesetpixel() determines how much of the underlying color should be

<?php// Create image$im imagecreatetruecolor(100100);// Set alphablending to onimagealphablending($imtrue);// Draw a squareimagefilledrectangle($im30307070imagecolorallocate($im25500));// Outputheader('Content-type: image/png');imagepng($im);imagedestroy($im);?>


No comments:

Post a Comment