src/Modules/Imager/GDDriver.php
public function overlay($layer, $x = 0, $y = 0)
    {
        imagealphablending($this->image_handler, true);
        imagecopy($this->image_handler, $layer->getImageHandler(), $x, $y, 0, 0, $layer->width, $layer->height);
        imagealphablending($this->image_handler, false);
        return $this;
    }
public function overlay($layer, $x = 0, $y = 0)
    {
        imagealphablending($this->image_handler, true);
        imagecopy($this->image_handler, $layer->getImageHandler(), $x, $y, 0, 0, $layer->width, $layer->height);
        imagealphablending($this->image_handler, false);
        return $this;
    }
@param GDDriver $layer
@param integer $x
@param integer $y

@return $this