Imagick::getResource

(PECL imagick 2, PECL imagick 3)

Imagick::getResourceReturns the specified resource's memory usage

說明

public static Imagick::getResource(int $type): int

Returns the specified resource's memory usage in megabytes.

參數(shù)

type

Refer to the list of resourcetype constants.

返回值

Returns the specified resource's memory usage in megabytes.

錯誤/異常

錯誤時拋出 ImagickException。