m+IBresource - ImageMagick Resource Consumption Methods>j Pair








NAME

:

resource - ImageMagick Resource Consumption Methods






(

SYNOPSIS

i

unsigned int AcquireMagickResource( const ResourceType type, const off_t size );

T

unsigned long GetMagickResource( const ResourceType type );

b

void LiberateMagickResource( const ResourceType type, const off_t size );

k

void SetMagickResourceLimit( const ResourceType type, const unsigned long limit );






B

FUNCTION DESCRIPTIONS





B

AcquireMagickResource

Œ
AcquireMagickResource() acquires resources of the specified type. True is returned if the specified resource is available otherwise False.
The format of the AcquireMagickResource() method is:
unsigned int AcquireMagickResource ( const ResourceType type, const off_t size );

A description of each parameter follows:


?
o type:


The type of resource.


?
o size:


2The number of bytes needed from for this resource.





:

GetMagickResource

-
GetMagickResource() returns the the specified resource in megabytes.
The format of the GetMagickResource() method is:
unsigned long GetMagickResource ( const ResourceType type );

A description of each parameter follows:


"
o type:


The type of resource.





D

LiberateMagickResource

?
LiberateMagickResource() liberates resources of the specified type.
The format of the LiberateMagickResource() method is:
void LiberateMagickResource ( const ResourceType type, const off_t size );

A description of each parameter follows:


"
o type:


The type of resource.


"
o size:


The size of the resource.





D

SetMagickResourceLimit

T
SetMagickResourceLimit() sets the limit for a particular resource in megabytes.
The format of the SetMagickResourceLimit() method is:
void SetMagickResourceLimit ( const ResourceType type, const unsigned long limit );

A description of each parameter follows:


"
o type:


The type of resource.


A
o limit:


2The maximum limit for the resource (in megabytes).