Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > 0d81a008159b90d5a3553d84969a208b > files > 105

graphicsmagick-doc-1.2.5-2.3mdvmes5.2.x86_64.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>registry - In-memory image registration interface</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:bfriesen@freddy.simplesystems.org" />
</head>

<body style="background-color: white">

<P><a name="__index__"></a></P>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#function_descriptions">FUNCTION DESCRIPTIONS</a></li>
	<ul>

		<li><a href="#deletemagickregistry">DeleteMagickRegistry</a></li>
		<li><a href="#getimagefrommagickregisty">GetImageFromMagickRegisty</a></li>
		<li><a href="#getmagickregistry">GetMagickRegistry</a></li>
		<li><a href="#setmagickregistry">SetMagickRegistry</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>registry - In-memory image registration interface</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>unsigned int  <strong>DeleteMagickRegistry</strong>( const long id );</P>
<P>const void * <strong>GetMagickRegistry</strong>( const long id, RegistryType *type, size_t *length, ExceptionInfo *exception );</P>
<P>long  <strong>SetMagickRegistry</strong>( const RegistryType type, const void *blob, const size_t length, ExceptionInfo *exception );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="deletemagickregistry">DeleteMagickRegistry</a></h2>
<blockquote>DeleteMagickRegistry() deletes an entry in the registry as defined by the id. It returns True if the entry is deleted otherwise False if no entry is found in the registry that matches the id. </blockquote><P>The format of the DeleteMagickRegistry method is:</P>
<blockquote>unsigned int DeleteMagickRegistry ( const long id ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_id_3a">id:</a></strong>

<DD>
<P>The registry id.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getimagefrommagickregisty">GetImageFromMagickRegisty</a></h2>
<P><code>GetImageFromMagickRegistry()</code> gets an image from the registry as defined by its name.  If the blob that matches the name is not found, NULL is returned.</P>
<P>The format of the GetImageFromMagickRegistry method is:</P>
<pre>
    Image *GetImageFromMagickRegistry(const char *name,long *id,
      ExceptionInfo *exception)</pre>
<P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_name_3a">name:</a></strong>

<DD>
<P>The name of the image to retrieve from the registry.</P>
</dd>
</li>
<dt><strong>id:</strong>

<DD>
<P>The registry id.</P>
</dd>
</li>
<dt><strong><a name="item_o_exception_3a">exception:</a></strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getmagickregistry">GetMagickRegistry</a></h2>
<blockquote>GetMagickRegistry() gets a blob from the registry as defined by the id. If the blob that matches the id is not found, NULL is returned. </blockquote><P>The format of the GetMagickRegistry method is:</P>
<blockquote>const void *GetMagickRegistry ( const long id, <A HREF="types.html#RegistryType">RegistryType</A> *type, size_t *length, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>id:</strong>

<DD>
<P>The registry id.</P>
</dd>
</li>
<dt><strong><a name="item_o_type_3a">type:</a></strong>

<DD>
<P>The registry type.</P>
</dd>
</li>
<dt><strong><a name="item_o_length_3a">length:</a></strong>

<DD>
<P>The blob length in number of bytes.</P>
</dd>
</li>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setmagickregistry">SetMagickRegistry</a></h2>
<blockquote>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned. </blockquote><P>The format of the SetMagickRegistry method is:</P>
<blockquote>long SetMagickRegistry ( const <A HREF="types.html#RegistryType">RegistryType</A> type, const void *blob, const size_t length, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>type:</strong>

<DD>
<P>The registry type.</P>
</dd>
</li>
<dt><strong><a name="item_o_blob_3a">blob:</a></strong>

<DD>
<P>The address of a Binary Large OBject.</P>
</dd>
</li>
<dt><strong>length:</strong>

<DD>
<P>For a registry type of ImageRegistryType use <code>sizeof(Image)</code> otherise the blob length in number of bytes.</P>
</dd>
</li>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</dl>

</body>

</html>