Think/Image/Driver/Imagick.php
private function _fill(\Imagick $newimg, $posx, $posy, $neww, $newh, $img = null)
    {
        is_null($img) && $img = $this->img;

        /* 将指定图片绘入空白图片 */
        $draw = new \ImagickDraw();
        $draw->composite($img->getImageCompose(), $posx, $posy, $neww, $newh, $img);
        $image = $newimg->clone();
        $image->drawImage($draw);
        $draw->destroy();

        return $image;
    }
private function _fill(\Imagick $newimg, $posx, $posy, $neww, $newh, $img = null)
    {
        is_null($img) && $img = $this->img;

        /* 将指定图片绘入空白图片 */
        $draw = new \ImagickDraw();
        $draw->composite($img->getImageCompose(), $posx, $posy, $neww, $newh, $img);
        $image = $newimg->clone();
        $image->drawImage($draw);
        $draw->destroy();

        return $image;
    }
填充指定图像，内部使用

@param  \Imagick $newimg
@param           $posx
@param           $posy
@param           $neww
@param           $newh
@param null $img

@return mixed