1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <title>ImageMagick: MagickCore, C API for ImageMagick: The Image Registry</title> 9 <meta charset="utf-8" /> 10 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 11 <meta name="viewport" content="width=device-width, initial-scale=1" /> 12 <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 13 <meta name="application-name" content="ImageMagick"/> 14 <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."/> 15 <meta name="application-url" content="http://www.imagemagick.org"/> 16 <meta name="generator" content="PHP"/> 17 <meta name="keywords" content="magickcore, c, api, for, imagemagick:, the, image, registry, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/> 18 <meta name="rating" content="GENERAL"/> 19 <meta name="robots" content="INDEX, FOLLOW"/> 20 <meta name="generator" content="ImageMagick Studio LLC"/> 21 <meta name="author" content="ImageMagick Studio LLC"/> 22 <meta name="revisit-after" content="2 DAYS"/> 23 <meta name="resource-type" content="document"/> 24 <meta name="copyright" content="Copyright (c) 1999-2016 ImageMagick Studio LLC"/> 25 <meta name="distribution" content="Global"/> 26 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/> 27 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 28 <link rel="icon" href="../images/wand.png"/> 29 <link rel="shortcut icon" href="../images/wand.ico"/> 30 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700"> 31 <link rel="stylesheet" href="../css/magick.html"/> 32</head> 33<body> 34<div class="main"> 35<div class="magick-masthead"> 36 <div class="container"> 37 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 38 style="display:block" 39 data-ad-client="ca-pub-3129977114552745" 40 data-ad-slot="6345125851" 41 data-ad-format="auto"></ins> 42 <script> 43 (adsbygoogle = window.adsbygoogle || []).push({}); 44 </script> 45 <nav class="magick-nav"> 46 <a class="magick-nav-item " href="../index.html">Home</a> 47 <a class="magick-nav-item " href="../binary-releases.html">Download</a> 48 <a class="magick-nav-item " href="../command-line-tools.html">Tools</a> 49 <a class="magick-nav-item " href="../command-line-processing.html">Command-line</a> 50 <a class="magick-nav-item " href="../resources.html">Resources</a> 51 <a class="magick-nav-item " href="api.html">Develop</a> 52 <a class="magick-nav-item " href="http://www.imagemagick.org/script/search.php">Search</a> 53 <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a> 54 </nav> 55 </div> 56</div> 57<div class="container"> 58<div class="magick-header"> 59<p class="text-center"><a href="registry.html#DefineImageRegistry">DefineImageRegistry</a> • <a href="registry.html#DeleteImageRegistry">DeleteImageRegistry</a> • <a href="registry.html#GetImageRegistry">GetImageRegistry</a> • <a href="registry.html#GetNextImageRegistry">GetNextImageRegistry</a> • <a href="registry.html#RegistryComponentTerminus">RegistryComponentTerminus</a> • <a href="registry.html#RemoveImageRegistry">RemoveImageRegistry</a> • <a href="registry.html#ResetImageRegistryIterator">ResetImageRegistryIterator</a> • <a href="registry.html#SetImageRegistry">SetImageRegistry</a></p> 60 61<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="DefineImageRegistry">DefineImageRegistry</a></h2> 62 63<p>DefineImageRegistry() associates a key/value pair with the image registry.</p> 64 65<p>The format of the DefineImageRegistry method is:</p> 66 67<pre class="text"> 68MagickBooleanType DefineImageRegistry(const RegistryType type, 69 const char *option,ExceptionInfo *exception) 70</pre> 71 72<p>A description of each parameter follows:</p> 73 74<dd> 75</dd> 76 77<dd> </dd> 78<dl class="dl-horizontal"> 79<dt>type</dt> 80<dd>the type. </dd> 81 82<dd> </dd> 83<dt>option</dt> 84<dd>the option. </dd> 85 86<dd> </dd> 87<dt>exception</dt> 88<dd>the exception. </dd> 89 90<dd> </dd> 91</dl> 92<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="DeleteImageRegistry">DeleteImageRegistry</a></h2> 93 94<p>DeleteImageRegistry() deletes a key from the image registry.</p> 95 96<p>The format of the DeleteImageRegistry method is:</p> 97 98<pre class="text"> 99MagickBooleanType DeleteImageRegistry(const char *key) 100</pre> 101 102<p>A description of each parameter follows:</p> 103 104<dd> 105</dd> 106 107<dd> </dd> 108<dl class="dl-horizontal"> 109<dt>key</dt> 110<dd>the registry. </dd> 111 112<dd> </dd> 113</dl> 114<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="GetImageRegistry">GetImageRegistry</a></h2> 115 116<p>GetImageRegistry() returns a value associated with an image registry key.</p> 117 118<p>The format of the GetImageRegistry method is:</p> 119 120<pre class="text"> 121void *GetImageRegistry(const RegistryType type,const char *key, 122 ExceptionInfo *exception) 123</pre> 124 125<p>A description of each parameter follows:</p> 126 127<dd> 128</dd> 129 130<dd> </dd> 131<dl class="dl-horizontal"> 132<dt>type</dt> 133<dd>the type. </dd> 134 135<dd> </dd> 136<dt>key</dt> 137<dd>the key. </dd> 138 139<dd> </dd> 140<dt>exception</dt> 141<dd>the exception. </dd> 142 143<dd> </dd> 144</dl> 145<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="GetNextImageRegistry">GetNextImageRegistry</a></h2> 146 147<p>GetNextImageRegistry() gets the next image registry value.</p> 148 149<p>The format of the GetNextImageRegistry method is:</p> 150 151<pre class="text"> 152char *GetNextImageRegistry(void) 153</pre> 154 155<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="RegistryComponentTerminus">RegistryComponentTerminus</a></h2> 156 157<p>RegistryComponentTerminus() destroys the registry component.</p> 158 159<p>The format of the DestroyDefines method is:</p> 160 161<pre class="text"> 162void RegistryComponentTerminus(void) 163</pre> 164 165<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="RemoveImageRegistry">RemoveImageRegistry</a></h2> 166 167<p>RemoveImageRegistry() removes a key from the image registry and returns its value.</p> 168 169<p>The format of the RemoveImageRegistry method is:</p> 170 171<pre class="text"> 172void *RemoveImageRegistry(const char *key) 173</pre> 174 175<p>A description of each parameter follows:</p> 176 177<dd> 178</dd> 179 180<dd> </dd> 181<dl class="dl-horizontal"> 182<dt>key</dt> 183<dd>the registry. </dd> 184 185<dd> </dd> 186</dl> 187<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="ResetImageRegistryIterator">ResetImageRegistryIterator</a></h2> 188 189<p>ResetImageRegistryIterator() resets the registry iterator. Use it in conjunction with GetNextImageRegistry() to iterate over all the values in the image registry.</p> 190 191<p>The format of the ResetImageRegistryIterator method is:</p> 192 193<pre class="text"> 194ResetImageRegistryIterator(void) 195</pre> 196 197<h2><a href="http://www.imagemagick.org/api/MagickCore/registry_8c.html" id="SetImageRegistry">SetImageRegistry</a></h2> 198 199<p>SetImageRegistry() associates a value with an image registry key.</p> 200 201<p>The format of the SetImageRegistry method is:</p> 202 203<pre class="text"> 204MagickBooleanType SetImageRegistry(const RegistryType type, 205 const char *key,const void *value,ExceptionInfo *exception) 206</pre> 207 208<p>A description of each parameter follows:</p> 209 210<dd> 211</dd> 212 213<dd> </dd> 214<dl class="dl-horizontal"> 215<dt>type</dt> 216<dd>the type. </dd> 217 218<dd> </dd> 219<dt>key</dt> 220<dd>the key. </dd> 221 222<dd> </dd> 223<dt>value</dt> 224<dd>the value. </dd> 225 226<dd> </dd> 227<dt>exception</dt> 228<dd>the exception. </dd> 229 230<dd> </dd> 231</dl> 232</div> 233 <footer class="magick-footer"> 234 <p><a href="../support.html">Donate</a> • 235 <a href="../sitemap.html">Sitemap</a> • 236 <a href="../links.html">Related</a> • 237 <a href="../architecture.html">Architecture</a> 238</p> 239 <p><a href="registry.html#">Back to top</a> • 240 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 241 <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p> 242 <p><small>© 1999-2016 ImageMagick Studio LLC</small></p> 243 </footer> 244</div><!-- /.container --> 245 246 <script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 247 <script src="../js/magick.html"></script> 248</div> 249</body> 250</html> 251