function GDToolkit::getImage
Same name in other branches
- 11.x core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getImage()
Retrieves the image.
Return value
\GdImage|null The GD image object, or NULL if not available.
6 calls to GDToolkit::getImage()
- GDToolkit::getHeight in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Returns the height of the image.
- GDToolkit::getResource in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Retrieves the GD image resource.
- GDToolkit::getTransparentColor in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Gets the color set for transparency in GIF images.
- GDToolkit::getWidth in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Returns the width of the image.
- GDToolkit::load in core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php - Loads an image from a file.
File
-
core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php, line 215
Class
- GDToolkit
- Defines the GD2 toolkit for image manipulation within Drupal.
Namespace
Drupal\system\Plugin\ImageToolkitCode
public function getImage() : ?\GdImage {
if (!$this->image) {
$this->load();
}
return $this->image;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.