Grafika\Gd\Image::getCore PHP Méthode

getCore() public méthode

Get GD resource ID.
public getCore ( ) : resource
Résultat resource
    public function getCore()
    {
        return $this->gd;
    }

Usage Example

Exemple #1
0
 /**
  * @param Image $image
  *
  * @return Image
  */
 public function draw($image)
 {
     list($x1, $y1) = $this->point1;
     list($x2, $y2) = $this->point2;
     list($r, $g, $b) = $this->color->getRgb();
     $color = imagecolorallocate($image->getCore(), $r, $g, $b);
     if (function_exists('imageantialias')) {
         // Not available on some if PHP is not precompiled with it even if GD is enabled
         imageantialias($image->getCore(), true);
     }
     imageline($image->getCore(), $x1, $y1, $x2, $y2, $color);
     return $image;
 }
All Usage Examples Of Grafika\Gd\Image::getCore