function GDToolkit::setImage
Sets an image or resets existing one.
Parameters
\GdImage|null $image: The GD image object or NULL.
Return value
$this An instance of the current toolkit object.
1 call to GDToolkit::setImage()
- 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 124
Class
- GDToolkit
- Defines the GD2 toolkit for image manipulation within Drupal.
Namespace
Drupal\system\Plugin\ImageToolkitCode
public function setImage(?\GdImage $image) : static {
$this->preLoadInfo = NULL;
$this->image = $image;
return $this;
}