public function setResource($gdResource)
	{
		if (!\is_resource($gdResource) || get_resource_type($gdResource) !== 'gd')
		{
			throw new \InvalidArgumentException('$gdResource is not a valid GD resource');
		}

		$this->gdResource = $gdResource;

		return $this;
	}