Sophie

Sophie

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

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>magick - Image format support interfaces</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="#destroymagick">DestroyMagick</a></li>
		<li><a href="#destroymagickinfo">DestroyMagickInfo</a></li>
		<li><a href="#getimagemagick">GetImageMagick</a></li>
		<li><a href="#getmagickinfo">GetMagickInfo</a></li>
		<li><a href="#getmagickinfoarray">GetMagickInfoArray</a></li>
		<li><a href="#initializemagick">InitializeMagick</a></li>
		<li><a href="#ismagickconflict">IsMagickConflict</a></li>
		<li><a href="#listmagickinfo">ListMagickInfo</a></li>
		<li><a href="#listmodulemap">ListModuleMap</a></li>
		<li><a href="#magicktomime">MagickToMime</a></li>
		<li><a href="#registermagickinfo">RegisterMagickInfo</a></li>
		<li><a href="#setmagickinfo">SetMagickInfo</a></li>
		<li><a href="#unregistermagickinfo">UnregisterMagickInfo</a></li>
	</ul>

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

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>magick - Image format support interfaces</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P><strong>DestroyMagick</strong>( void );</P>
<P>void  <strong>DestroyMagickInfo</strong>( void );</P>
<P>const char * <strong>GetImageMagick</strong>( const unsigned char *magick, const size_t length );</P>
<P>const MagickInfo * <strong>GetMagickInfo</strong>( const char *name, ExceptionInfo *exception );</P>
<P>MagickInfo **  <strong>GetMagickInfoArray</strong>( ExceptionInfo *exception );</P>
<P><strong>InitializeMagick</strong>( const char *path );</P>
<P>unsigned int  <strong>IsMagickConflict</strong>( const char *magick );</P>
<P>unsigned int  <strong>ListMagickInfo</strong>( FILE *file, ExceptionInfo *exception );</P>
<P>unsigned int  <strong>ListModuleMap</strong>( FILE *file, ExceptionInfo *exception );</P>
<P>char * <strong>MagickToMime</strong>( const char *magick );</P>
<P>MagickInfo * <strong>RegisterMagickInfo</strong>( MagickInfo *magick_info );</P>
<P>MagickInfo * <strong>SetMagickInfo</strong>( const char *name );</P>
<P>unsigned int  <strong>UnregisterMagickInfo</strong>( const char *name );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="destroymagick">DestroyMagick</a></h2>
<blockquote>DestroyMagick() destroys the GraphicsMagick environment. </blockquote><P>The format of the DestroyMagick function is:</P>
<blockquote>DestroyMagick ( void ); </blockquote><P>
</P>
<h2><a name="destroymagickinfo">DestroyMagickInfo</a></h2>
<blockquote>DestroyMagickInfo() deallocates memory associated with the <A HREF="types.html#MagickInfo">MagickInfo</A> list. </blockquote><P>The format of the DestroyMagickInfo method is:</P>
<blockquote>void DestroyMagickInfo ( void ); </blockquote><P>
</P>
<h2><a name="getimagemagick">GetImageMagick</a></h2>
<blockquote>GetImageMagick() searches for an image format that matches the specified magick string. If one is found the name is returned otherwise NULL. </blockquote><P>The format of the GetImageMagick method is:</P>
<blockquote>const char *GetImageMagick ( const unsigned char *magick, const size_t length ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_magick_3a">magick:</a></strong>

<DD>
<P>The image format we are searching for.</P>
</dd>
</li>
<dt><strong><a name="item_o_length_3a">length:</a></strong>

<DD>
<P>The length of the binary string.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getmagickinfo">GetMagickInfo</a></h2>
<blockquote>GetMagickInfo() returns a pointer <A HREF="types.html#MagickInfo">MagickInfo</A> structure that matches the specified name. If name is NULL, the head of the image format list is returned. It is not safe to traverse the list by using the previous and next pointers in the <A HREF="types.html#MagickInfo">MagickInfo</A> structure since the list contents or order may be altered while the list is being traversed. If the list must be traversed, access it via the GetMagickInfoArray function instead. </blockquote><P>The format of the GetMagickInfo method is:</P>
<blockquote>const <A HREF="types.html#MagickInfo">MagickInfo</A> *GetMagickInfo ( const char *name, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_name_3a">name:</a></strong>

<DD>
<P>The image format we are looking for.</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="getmagickinfoarray">GetMagickInfoArray</a></h2>
<blockquote>GetMagickInfoArray() returns a sorted null-terminated array of <A HREF="types.html#MagickInfo">MagickInfo</A> pointers corresponding to the available format registrations. If necessarly all modules are loaded in order to return a complete list. This function should be used to access the entire list rather than GetMagickInfo since the list returned by GetMagickInfo may be re-ordered every time it is invoked. Once the returned array is no longer needed, the allocated array should be deallocated. Do not attempt to deallocate the <A HREF="types.html#MagickInfo">MagickInfo</A> structures based on pointers in the array! </blockquote><P>The format of the GetMagickList method is:</P>
<blockquote><A HREF="types.html#MagickInfo">MagickInfo</A> **GetMagickInfoArray ( <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="initializemagick">InitializeMagick</a></h2>
<blockquote>InitializeMagick() initializes the GraphicsMagick environment. </blockquote><P>The format of the InitializeMagick function is:</P>
<blockquote>InitializeMagick ( const char *path ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_path_3a">path:</a></strong>

<DD>
<P>The execution path of the current GraphicsMagick client.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="ismagickconflict">IsMagickConflict</a></h2>
<P>Method IsMagickConflict returns true if the image format conflicts with a logical drive (.e.g.  X:).</P>
<P>The format of the IsMagickConflict method is:</P>
<blockquote>unsigned int IsMagickConflict ( const char *magick ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_status_3a">status:</a></strong>

<DD>
<P>Method IsMagickConflict returns true if the image format conflicts with a logical drive.</P>
</dd>
</li>
<dt><strong>magick:</strong>

<DD>
<P>Specifies the image format.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="listmagickinfo">ListMagickInfo</a></h2>
<blockquote>ListMagickInfo() lists the image formats to a file. </blockquote><P>The format of the ListMagickInfo method is:</P>
<blockquote>unsigned int ListMagickInfo ( FILE *file, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows.</P>
<dl>
<dt><strong><a name="item_o_file_3a">file:</a></strong>

<DD>
<P>A file handle.</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="listmodulemap">ListModuleMap</a></h2>
<P>Method ListModuleMap lists the module alias info to a file in the XML format used by modules.mgk.  True is returned on success.</P>
<P>The format of the ListModuleMap method is:</P>
<blockquote>unsigned int ListModuleMap ( FILE *file, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows.</P>
<dl>
<dt><strong>file:</strong>

<DD>
<P>An pointer to a FILE.</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="magicktomime">MagickToMime</a></h2>
<P>Method MagickToMime returns the officially registered (or de facto) MIME media-type corresponding to a magick string.  If there is no registered media-type, then the string ``image/x-magick'' (all lower case) is returned.  The returned string must be deallocated by the user.</P>
<P>The format of the MagickToMime method is:</P>
<blockquote>char *MagickToMime ( const char *magick ); </blockquote><P>A description of each parameter follows.</P>
<dl>
<dt><strong>magick:</strong>

<DD>
<P>GraphicsMagick format specification ``magick'' tag.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="registermagickinfo">RegisterMagickInfo</a></h2>
<blockquote>RegisterMagickInfo() adds attributes for a particular image format to the list of supported formats. The attributes include the image format name, a method to read and/or write the format, whether the format supports the saving of more than one frame to the same file or blob, whether the format supports native in-memory I/O, and a brief description of the format. </blockquote><P>The format of the RegisterMagickInfo method is:</P>
<blockquote><A HREF="types.html#MagickInfo">MagickInfo</A> *RegisterMagickInfo ( <A HREF="types.html#MagickInfo">MagickInfo</A> *magick_info ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_magick_info_3a">magick_info:</a></strong>

<DD>
<P>The magick info.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setmagickinfo">SetMagickInfo</a></h2>
<P>Method SetMagickInfo allocates a MagickInfo structure and initializes the members to default values.</P>
<P>The format of the SetMagickInfo method is:</P>
<blockquote><A HREF="types.html#MagickInfo">MagickInfo</A> *SetMagickInfo ( const char *name ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>magick_info:</strong>

<DD>
<P>Method SetMagickInfo returns the allocated and initialized MagickInfo structure.</P>
</dd>
</li>
<dt><strong>name:</strong>

<DD>
<P>a character string that represents the image format associated with the MagickInfo structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="unregistermagickinfo">UnregisterMagickInfo</a></h2>
<P>Method UnregisterMagickInfo removes a name from the magick info list.  It returns False if the name does not exist in the list otherwise True.</P>
<P>The format of the UnregisterMagickInfo method is:</P>
<blockquote>unsigned int UnregisterMagickInfo ( const char *name ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>status:</strong>

<DD>
<P>Method UnregisterMagickInfo returns False if the name does not exist in the list otherwise True.</P>
</dd>
</li>
<dt><strong>name:</strong>

<DD>
<P>a character string that represents the image format we are looking for.</P>
</dd>
</dl>

</body>

</html>