private function drawImage($element, $canvas)
    {
        $image = $element->getResource();

        imagecopyresampled(
            $canvas,
            $image,
            $element->getLeft(),
            $element->getTop(),
            $element->getBoxLeft(),
            $element->getBoxTop(),
            $element->getBoxWidth(),
            $element->getBoxHeight(),
            $element->getWidth(),
            $element->getHeight()
        );
    }
private function drawImage($element, $canvas)
    {
        $image = $element->getResource();

        imagecopyresampled(
            $canvas,
            $image,
            $element->getLeft(),
            $element->getTop(),
            $element->getBoxLeft(),
            $element->getBoxTop(),
            $element->getBoxWidth(),
            $element->getBoxHeight(),
            $element->getWidth(),
            $element->getHeight()
        );
    }
private function drawImage ( $ element , $ canvas ) { $ image = $ element -> getResource ( ) ; imagecopyresampled ( $ canvas , $ image , $ element -> getLeft ( ) , $ element -> getTop ( ) , $ element -> getBoxLeft ( ) , $ element -> getBoxTop ( ) , $ element -> getBoxWidth ( ) , $ element -> getBoxHeight ( ) , $ element -> getWidth ( ) , $ element -> getHeight ( ) ) ; }
Draw the an Image or Figure element.

@param  \GImage\Image|\GImage\Figure $element Image or Figure element.
@param mixed                         $canvas
@return void
Draw the an Image or Figure element .