5 <title>ImageMagick: MagickCore, C API for ImageMagick: Monitor or Limit Resource Consumption</title>
6 <meta http-equiv="content-type" content="text/html; charset=utf-8">
7 <meta name="application-name" content="ImageMagick">
8 <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.">
9 <meta name="application-url" content="http://www.imagemagick.org">
10 <meta name="generator" content="PHP">
11 <meta name="keywords" content="magickcore, c, api, for, imagemagick:, monitor, or, limit, resource, consumption, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert">
12 <meta name="rating" content="GENERAL">
13 <meta name="robots" content="INDEX, FOLLOW">
14 <meta name="generator" content="ImageMagick Studio LLC">
15 <meta name="author" content="ImageMagick Studio LLC">
16 <meta name="revisit-after" content="2 DAYS">
17 <meta name="resource-type" content="document">
18 <meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC">
19 <meta name="distribution" content="Global">
20 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1">
21 <link rel="icon" href="../images/wand.png">
22 <link rel="shortcut icon" href="../images/wand.ico">
23 <link rel="stylesheet" href="../css/magick.html">
27 <div class="magick-masthead">
28 <div class="container">
29 <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3129977114552745" data-ad-slot="6345125851" data-ad-format="auto"></ins>
31 (adsbygoogle = window.adsbygoogle || []).push({});
33 <nav class="magick-nav">
34 <a class="magick-nav-item " href="../index.html">Home</a>
35 <a class="magick-nav-item " href="../binary-releases.html">Download</a>
36 <a class="magick-nav-item " href="../command-line-tools.html">Tools</a>
37 <a class="magick-nav-item " href="../command-line-options.html">Options</a>
38 <a class="magick-nav-item " href="../resources.html">Resources</a>
39 <a class="magick-nav-item " href="api.html">Develop</a>
40 <a class="magick-nav-item " href="http://nextgen.imagemagick.org/script/search.php">Search</a>
41 <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
45 <div class="container">
46 <div class="magick-header">
47 <p class="text-center"><a href="resource.html#AcquireMagickResource">AcquireMagickResource</a> • <a href="resource.html#AcquireUniqueFileResource">AcquireUniqueFileResource</a> • <a href="resource.html#GetMagickResource">GetMagickResource</a> • <a href="resource.html#GetMagickResourceLimit">GetMagickResourceLimit</a> • <a href="resource.html#ListMagickResourceInfo">ListMagickResourceInfo</a> • <a href="resource.html#RelinquishMagickResource">RelinquishMagickResource</a> • <a href="resource.html#RelinquishUniqueFileResource">RelinquishUniqueFileResource</a> • <a href="resource.html#SetMagickResourceLimit">SetMagickResourceLimit</a></p>
49 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="AcquireMagickResource">AcquireMagickResource</a></h2>
51 <p>AcquireMagickResource() acquires resources of the specified type. MagickFalse is returned if the specified resource is exhausted otherwise MagickTrue.</p>
53 <p>The format of the AcquireMagickResource() method is:</p>
56 MagickBooleanType AcquireMagickResource(const ResourceType type,
57 const MagickSizeType size)
60 <p>A description of each parameter follows:</p>
66 <dl class="dl-horizontal">
68 <dd>the type of resource. </dd>
72 <dd>the number of bytes needed from for this resource. </dd>
76 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="AcquireUniqueFileResource">AcquireUniqueFileResource</a></h2>
78 <p>AcquireUniqueFileResource() returns a unique file name, and returns a file descriptor for the file open for reading and writing.</p>
80 <p>The format of the AcquireUniqueFileResource() method is:</p>
83 int AcquireUniqueFileResource(char *path)
86 <p>A description of each parameter follows:</p>
92 <dl class="dl-horizontal">
94 <dd> Specifies a pointer to an array of characters. The unique path name is returned in this array. </dd>
98 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="GetMagickResource">GetMagickResource</a></h2>
100 <p>GetMagickResource() returns the specified resource.</p>
102 <p>The format of the GetMagickResource() method is:</p>
105 MagickSizeType GetMagickResource(const ResourceType type)
108 <p>A description of each parameter follows:</p>
114 <dl class="dl-horizontal">
116 <dd>the type of resource. </dd>
120 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="GetMagickResourceLimit">GetMagickResourceLimit</a></h2>
122 <p>GetMagickResourceLimit() returns the specified resource limit.</p>
124 <p>The format of the GetMagickResourceLimit() method is:</p>
127 MagickSizeType GetMagickResourceLimit(const ResourceType type)
130 <p>A description of each parameter follows:</p>
136 <dl class="dl-horizontal">
138 <dd>the type of resource. </dd>
142 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="ListMagickResourceInfo">ListMagickResourceInfo</a></h2>
144 <p>ListMagickResourceInfo() lists the resource info to a file.</p>
146 <p>The format of the ListMagickResourceInfo method is:</p>
149 MagickBooleanType ListMagickResourceInfo(FILE *file,
150 ExceptionInfo *exception)
153 <p>A description of each parameter follows.</p>
156 <p>An pointer to a FILE.</p>
159 <p>return any errors or warnings in this structure.</p>
161 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="RelinquishMagickResource">RelinquishMagickResource</a></h2>
163 <p>RelinquishMagickResource() relinquishes resources of the specified type.</p>
165 <p>The format of the RelinquishMagickResource() method is:</p>
168 void RelinquishMagickResource(const ResourceType type,
169 const MagickSizeType size)
172 <p>A description of each parameter follows:</p>
178 <dl class="dl-horizontal">
180 <dd>the type of resource. </dd>
184 <dd>the size of the resource. </dd>
188 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="RelinquishUniqueFileResource">RelinquishUniqueFileResource</a></h2>
190 <p>RelinquishUniqueFileResource() relinquishes a unique file resource.</p>
192 <p>The format of the RelinquishUniqueFileResource() method is:</p>
195 MagickBooleanType RelinquishUniqueFileResource(const char *path)
198 <p>A description of each parameter follows:</p>
204 <dl class="dl-horizontal">
206 <dd>the name of the temporary resource. </dd>
210 <h2><a href="http://nextgen.imagemagick.org/api/MagickCore/resource_8c.html" id="SetMagickResourceLimit">SetMagickResourceLimit</a></h2>
212 <p>SetMagickResourceLimit() sets the limit for a particular resource.</p>
214 <p>The format of the SetMagickResourceLimit() method is:</p>
217 MagickBooleanType SetMagickResourceLimit(const ResourceType type,
218 const MagickSizeType limit)
221 <p>A description of each parameter follows:</p>
227 <dl class="dl-horizontal">
229 <dd>the type of resource. </dd>
233 <dd>the maximum limit for the resource. </dd>
238 <footer class="magick-footer">
239 <p><a href="../support.html">Donate</a> •
240 <a href="../sitemap.html">Sitemap</a> •
241 <a href="../links.html">Related</a> •
242 <a href="../architecture.html">Architecture</a>
244 <p><a href="resource.html#">Back to top</a> •
245 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> •
246 <a href="http://nextgen.imagemagick.org/script/contact.php">Contact Us</a></p>
247 <p><small>© 1999-2015 ImageMagick Studio LLC</small></p>
249 </div><!-- /.container -->
251 <script src="http://nextgen.imagemagick.org/js/magick.html"></script>