The Imagick class
PHP Manual

Imagick::getResource

(PECL imagick 2.0.0)

Imagick::getResourceReturns the specified resource's memory usage

Description

int Imagick::getResource ( int $type )
Warning

This function is currently not documented; only its argument list is available.

Returns the specified resource's memory usage in megabytes.

Parameters

type

Refer to the list of resourcetype constants.

Return Values

Returns the specified resource's memory usage in megabytes. Throw an ImagickException on error.


The Imagick class
PHP Manual