imagealphablending

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Set the blending mode for an image
imagealphablending(GdImage $imagebool $enable): bool
            $filling $color->getInt();

        }



        
imagealphablending($resourcetrue);



        if (
is_int($x) && is_int($y)) {
        $target $image_size->relativePosition($watermark_size);




        
imagealphablending($image->getCore(), true);

        return 
imagecopy($image->getCore(), $watermark->getCore(), $target->x$target->y00$watermark_size->width$watermark_size->height);

    }

}
            $mask->resize($image_size->width$image_size->height);

        }



        
imagealphablending($canvas->getCore(), false);



        if ( ! 
$mask_w_alpha) {
        $transparent imagecolorallocatealpha($canvas->getCore(), 255255255127);

        
imagealphablending($canvas->getCore(), false); // do not blend / just overwrite

        
imagefilledrectangle($canvas->getCore(), $dst_x$dst_y$dst_x $src_w 1$dst_y $src_h 1$transparent);
            imagefill($modified00$transColor);

            
imagecolortransparent($modified$transColor);

        } else {

            
imagealphablending($modifiedfalse);

            
imagesavealpha($modifiedtrue);

        }
        $canvas imagecreatetruecolor($width$height);




        
imagealphablending($canvasfalse);

        
$transparent imagecolorallocatealpha($canvas255255255127);

        
imagefilledrectangle($canvas00$width$height$transparent);

        
imagecolortransparent($canvas$transparent);
        $transparent imagecolorallocatealpha($canvas255255255127);

        
imagefilledrectangle($canvas00$width$height$transparent);

        
imagecolortransparent($canvas$transparent);

        
imagealphablending($canvastrue);




        
imagecopy($canvas$resource0000$width$height);
        $width imagesx($core);

        
$height imagesy($core);

        
$clone imagecreatetruecolor($width$height);

        
imagealphablending($clonefalse);

        
imagesavealpha($clonetrue);

        
$transparency imagecolorallocatealpha($clone000127);

        
imagefill($clone00$transparency);
    {

        
ob_start();

        
$resource $this->image->getCore();

        
imagealphablending($resourcefalse);

        
imagesavealpha($resourcetrue);

        
imagepng($resourcenull, -1);

        
$this->image->mime image_type_to_mime_type(IMAGETYPE_PNG);
        ob_start();

        
imagepalettetotruecolor($this->image->getCore());

        
imagealphablending($this->image->getCore(), true);

        
imagesavealpha($this->image->getCore(), true);

        
imagewebp($this->image->getCore(), null$this->quality);

        
$this->image->mime defined('IMAGETYPE_WEBP') ? image_type_to_mime_type(IMAGETYPE_WEBP) : 'image/webp';
            }




            
imagealphablending($image->getCore(), true);




            
imagettftext($image->getCore(), $this->getPointSize(), $this->angle$posx$posy$color->getInt(), $this->file$this->text);