Contao\GdImage::getResource PHP Method

getResource() public method

Get the GD resource handle
public getResource ( ) : resource
return resource The GD resource handle
    public function getResource()
    {
        return $this->gdResource;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Save the GD image to a file
  *
  * @param GdImage $gdImage The target GD image
  * @param integer $x       The target X coordinate
  * @param integer $y       The target Y coordinate
  * @param integer $width   The target width
  * @param integer $height  The target height
  *
  * @return static
  */
 public function copyTo(self $gdImage, $x, $y, $width, $height)
 {
     imagecopyresampled($gdImage->getResource(), $this->gdResource, $x, $y, 0, 0, $width, $height, imagesx($this->gdResource), imagesy($this->gdResource));
     return $this;
 }
All Usage Examples Of Contao\GdImage::getResource