src/SimpleSoftwareIO/QrCode/ImageMerge.php
public function merge($percentage)
    {
        $this->setProperties($percentage);

        imagecopyresampled(
            $this->sourceImage->getImageResource(),
            $this->mergeImage->getImageResource(),
            $this->centerX,
            $this->centerY,
            0,
            0,
            $this->postMergeImageWidth,
            $this->postMergeImageHeight,
            $this->mergeImageWidth,
            $this->mergeImageHeight
        );

        return $this->createImage();
    }
public function merge($percentage)
    {
        $this->setProperties($percentage);

        imagecopyresampled(
            $this->sourceImage->getImageResource(),
            $this->mergeImage->getImageResource(),
            $this->centerX,
            $this->centerY,
            0,
            0,
            $this->postMergeImageWidth,
            $this->postMergeImageHeight,
            $this->mergeImageWidth,
            $this->mergeImageHeight
        );

        return $this->createImage();
    }
public function merge ( $ percentage ) { $ this -> setProperties ( $ percentage ) ; imagecopyresampled ( $ this -> sourceImage -> getImageResource ( ) , $ this -> mergeImage -> getImageResource ( ) , $ this -> centerX , $ this -> centerY , 0 , 0 , $ this -> postMergeImageWidth , $ this -> postMergeImageHeight , $ this -> mergeImageWidth , $ this -> mergeImageHeight ) ; return $ this -> createImage ( ) ; }
Returns an QrCode that has been merge with another image.
This is usually used with logos to imprint a logo into a QrCode.

@param $percentage float The percentage of size relative to the entire QR of the merged image

@return string
Returns an QrCode that has been merge with another image . This is usually used with logos to imprint a logo into a QrCode .