PHP - Manual: ps_close_image
2024-12-22
(PECL ps >= 1.1.0)
ps_close_image — Closes image and frees memory
$psdoc
, int $imageid
): void|falseCloses an image and frees its resources. Once an image is closed it cannot be used anymore.
psdoc
Resource identifier of the postscript file as returned by ps_new().
imageid
Resource identifier of the image as returned by ps_open_image() or ps_open_image_file().
Returns null
on success 或者在失败时返回 false
.
官方地址:https://www.php.net/manual/en/function.ps-close-image.php