• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2
3
4
5<!DOCTYPE html>
6<html lang="en">
7<head>
8  <meta charset="utf-8"  />
9  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no"  />
10  <title>ImageMagick - MagickCore, C API: Read or List Image formats</title>
11  <meta name="application-name" content="ImageMagick" />
12  <meta name="description" content="Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more." />
13  <meta name="application-url" content="https://imagemagick.org" />
14  <meta name="generator" content="PHP" />
15  <meta name="keywords" content="magickcore, c, api:, read, or, list, image, formats, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
16  <meta name="rating" content="GENERAL" />
17  <meta name="robots" content="INDEX, FOLLOW" />
18  <meta name="generator" content="ImageMagick Studio LLC" />
19  <meta name="author" content="ImageMagick Studio LLC" />
20  <meta name="revisit-after" content="2 DAYS" />
21  <meta name="resource-type" content="document" />
22  <meta name="copyright" content="Copyright (c) 1999-2020 ImageMagick Studio LLC" />
23  <meta name="distribution" content="Global" />
24  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
25  <meta property='og:url' content='../../' />
26  <meta property='og:title' content='ImageMagick' />
27  <meta property='og:image' content='../../images/logo.png' />
28  <meta property='og:type' content='website' />
29  <meta property='og:site_name' content='ImageMagick' />
30  <meta property='og:description' content="Convert, Edit, or Compose Bitmap Images" />
31  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
32  <link href="magick.html" rel="canonical" />
33  <link href="../../images/wand.png" rel="icon" />
34  <link href="../../images/wand.ico" rel="shortcut icon" />
35  <link href="../assets/magick.css" rel="stylesheet" />
36</head>
37<body>
38  <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
39    <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../images/wand.ico"/></a>
40    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">
41      <span class="navbar-toggler-icon"></span>
42    </button>
43
44    <div class="navbar-collapse collapse" id="navbarsMagick" style="">
45    <ul class="navbar-nav mr-auto">
46      <li class="nav-item ">
47        <a class="nav-link" href="../../">Home <span class="sr-only">(current)</span></a>
48      </li>
49      <li class="nav-item ">
50        <a class="nav-link" href="../../www/download.html">Download</a>
51      </li>
52      <li class="nav-item ">
53        <a class="nav-link" href="../../www/command-line-tools.html">Tools</a>
54      </li>
55      <li class="nav-item ">
56        <a class="nav-link" href="../../www/command-line-processing.html">Command-line</a>
57      </li>
58      <li class="nav-item ">
59        <a class="nav-link" href="../../www/resources.html">Resources</a>
60      </li>
61      <li class="nav-item ">
62        <a class="nav-link" href="../../www/develop.html">Develop</a>
63      </li>
64      <li class="nav-item">
65        <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a>
66      </li>
67    </ul>
68    <form class="form-inline my-2 my-lg-0" action="../https://imagemagick.org/script/search.php">
69      <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
70      <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
71    </form>
72    </div>
73  </nav>
74  <div class="container">
75   <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
76         style="display:block"
77         data-ad-client="ca-pub-3129977114552745"
78         data-ad-slot="6345125851"
79         data-full-width-responsive="true"
80         data-ad-format="horizontal"></ins>
81    <script>
82      (adsbygoogle = window.adsbygoogle || []).push({});
83    </script>
84
85  </div>
86
87  <main class="container">
88    <div class="magick-template">
89<div class="magick-header">
90<p class="text-center"><a href="magick.html#AcquireMagickInfo">AcquireMagickInfo</a> &#8226; <a href="magick.html#GetMagickPrecision">GetMagickPrecision</a> &#8226; <a href="magick.html#IsMagickCoreInstantiated">IsMagickCoreInstantiated</a> &#8226; <a href="magick.html#MagickCoreGenesis">MagickCoreGenesis</a> &#8226; <a href="magick.html#MagickCoreTerminus">MagickCoreTerminus</a> &#8226; <a href="magick.html#SetMagickPrecision">SetMagickPrecision</a></p>
91
92<h2><a href="../../api/MagickCore/magick_8c.html" id="AcquireMagickInfo">AcquireMagickInfo</a></h2>
93
94<p>AcquireMagickInfo() allocates a MagickInfo structure and initializes the members to default values.</p>
95
96<p>The format of the AcquireMagickInfo method is:</p>
97
98<pre class="text">
99MagickInfo *AcquireMagickInfo(const char *magick_module,
100  const char *name,const char *description)
101</pre>
102
103<p>A description of each parameter follows:</p>
104
105<dd>
106</dd>
107
108<dd> </dd>
109<dl class="dl-horizontal">
110<dt>magick_module</dt>
111<dd>a character string that represents the module associated with the MagickInfo structure. </dd>
112
113<dd> </dd>
114<dt>name</dt>
115<dd>a character string that represents the image format associated with the MagickInfo structure. </dd>
116
117<dd> </dd>
118<dt>description</dt>
119<dd>a character string that represents the image format associated with the MagickInfo structure. </dd>
120
121<dd>  </dd>
122</dl>
123<h2><a href="../../api/MagickCore/magick_8c.html" id="GetMagickPrecision">GetMagickPrecision</a></h2>
124
125<p>GetMagickPrecision() returns the maximum number of significant digits to be printed.</p>
126
127<p>The format of the GetMagickPrecision method is:</p>
128
129<pre class="text">
130int GetMagickPrecision(void)
131</pre>
132
133<h2><a href="../../api/MagickCore/magick_8c.html" id="IsMagickCoreInstantiated">IsMagickCoreInstantiated</a></h2>
134
135<p>IsMagickCoreInstantiated() returns MagickFalse if the ImageMagick environment has not been instantiated; the ImageMagick environment has been instantiated when MagickCoreGenesis() has been called but MagickDestroy() has not been called.</p>
136
137<p>The format of the IsMagickCoreInstantiated method is:</p>
138
139<pre class="text">
140MagickBooleanType IsMagickCoreInstantiated(void)
141</pre>
142
143<h2><a href="../../api/MagickCore/magick_8c.html" id="MagickCoreGenesis">MagickCoreGenesis</a></h2>
144
145<p>MagickCoreGenesis() initializes the MagickCore environment.</p>
146
147<p>The format of the MagickCoreGenesis function is:</p>
148
149<pre class="text">
150MagickCoreGenesis(const char *path,
151  const MagickBooleanType establish_signal_handlers)
152</pre>
153
154<p>A description of each parameter follows:</p>
155
156<dd>
157</dd>
158
159<dd> </dd>
160<dl class="dl-horizontal">
161<dt>path</dt>
162<dd>the execution path of the current ImageMagick client. </dd>
163
164<dd> </dd>
165<dt>establish_signal_handlers</dt>
166<dd>set to MagickTrue to use MagickCore's own signal handlers for common signals. </dd>
167
168<dd>  </dd>
169</dl>
170<h2><a href="../../api/MagickCore/magick_8c.html" id="MagickCoreTerminus">MagickCoreTerminus</a></h2>
171
172<p>MagickCoreTerminus() destroys the MagickCore environment.</p>
173
174<p>The format of the MagickCoreTerminus function is:</p>
175
176<pre class="text">
177MagickCoreTerminus(void)
178</pre>
179
180<h2><a href="../../api/MagickCore/magick_8c.html" id="SetMagickPrecision">SetMagickPrecision</a></h2>
181
182<p>SetMagickPrecision() sets the maximum number of significant digits to be printed.</p>
183
184<p>An input argument of 0 returns the current precision setting.</p>
185
186<p>A negative value forces the precision to reset to a default value according to the environment variable "MAGICK_PRECISION", the current 'policy' configuration setting, or the default value of '6', in that order.</p>
187
188<p>The format of the SetMagickPrecision method is:</p>
189
190<pre class="text">
191int SetMagickPrecision(const int precision)
192</pre>
193
194<p>A description of each parameter follows:</p>
195
196<dd>
197</dd>
198
199<dd> </dd>
200<dl class="dl-horizontal">
201<dt>precision</dt>
202<dd>set the maximum number of significant digits to be printed. </dd>
203
204<dd>  </dd>
205</dl>
206</div>
207    </div>
208  </main><!-- /.container -->
209  <footer class="magick-footer">
210    <p><a href="../../www/security-policy.html">Security</a> •
211    <a href="../../www/architecture.html">Architecture</a>
212
213    <a href="magick.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../images/wand.ico"/></a>
214
215    <a href="../../www/links.html">Related</a> •
216     <a href="../../www/sitemap.html">Sitemap</a>
217    <br/>
218    <a href="../../www/support.html">Donate</a> •
219    <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
220    <a href="../../www/contact.html">Contact Us</a>
221    <br/>
222    <small>© 1999-2020 ImageMagick Studio LLC</small></p>
223  </footer>
224
225  <!-- Javascript assets -->
226  <script src="../assets/magick.js" crossorigin="anonymous"></script>
227  <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.4.1/jquery.min.js"><\/script>')</script>
228</body>
229</html>
230<!-- Magick Cache 4th January 2020 12:41 -->