public function ImagickToolkit::setResource in Imagick 8
Sets the Imagick image resource.
Parameters
Imagick $resource: The Imagick image resource.
Return value
$this
1 call to ImagickToolkit::setResource()
- ImagickToolkit::parseFile in src/
Plugin/ ImageToolkit/ ImagickToolkit.php - Determines if a file contains a valid image.
File
- src/
Plugin/ ImageToolkit/ ImagickToolkit.php, line 107
Class
- ImagickToolkit
- Defines the Imagick toolkit for image manipulation within Drupal.
Namespace
Drupal\imagick\Plugin\ImageToolkitCode
public function setResource($resource) {
$this->resource = $resource;
return $this;
}