Sophie

Sophie

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

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>attribute - Access key,value image attributes</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="#cloneimageattributes">CloneImageAttributes</a></li>
		<li><a href="#destroyimageattributes">DestroyImageAttributes</a></li>
		<li><a href="#getimageattribute">GetImageAttribute</a></li>
		<li><a href="#getimageclippingpathattribute">GetImageClippingPathAttribute</a></li>
		<li><a href="#setimageattribute">SetImageAttribute</a></li>
	</ul>

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

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>attribute - Access key,value image attributes</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>MagickPassFail  <strong>CloneImageAttributes</strong>( Image *clone_image, const Image *original_image );</P>
<P><strong>DestroyImageAttributes</strong>( Image *image );</P>
<P>const ImageAttribute * <strong>GetImageAttribute</strong>( const Image *image, const char *key );</P>
<P>const ImageAttribute * <strong>GetImageClippingPathAttribute</strong>( const Image *image );</P>
<P>unsigned int  <strong>SetImageAttribute</strong>( Image *image, const char *key, const char *value );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="cloneimageattributes">CloneImageAttributes</a></h2>
<blockquote>CloneImageAttributes() copies the text attibutes from one image to another. Any text attributes in the destination image are preserved. CloneImageAttributes returns MagickPass if all of the attribututes are successfully cloned or MagickFail if there is a memory allocation error. </blockquote><P>The format of the CloneImageAttributes method is:</P>
<blockquote>MagickPassFail CloneImageAttributes ( <A HREF="types.html#Image">Image</A> *clone_image, const <A HREF="types.html#Image">Image</A> *original_image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_clone_image_3a">clone_image:</a></strong>

<DD>
<P>The destination image.</P>
</dd>
</li>
<dt><strong><a name="item_o_original_image_3a">original_image:</a></strong>

<DD>
<P>The source image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="destroyimageattributes">DestroyImageAttributes</a></h2>
<blockquote>DestroyImageAttributes() deallocates memory associated with the image attribute list. </blockquote><P>The format of the DestroyImageAttributes method is:</P>
<blockquote>DestroyImageAttributes ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_image_3a">image:</a></strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getimageattribute">GetImageAttribute</a></h2>
<blockquote>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL. </blockquote><P>The format of the GetImageAttribute method is:</P>
<blockquote>const ImageAttribute *GetImageAttribute ( const <A HREF="types.html#Image">Image</A> *image, const char *key ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_key_3a">key:</a></strong>

<DD>
<P>These character strings are the name of an image attribute to return.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getimageclippingpathattribute">GetImageClippingPathAttribute</a></h2>
<P>Method GetImageClippingPathAttribute searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</P>
<P>The format of the GetImageClippingPathAttribute method is:</P>
<blockquote>const ImageAttribute *GetImageClippingPathAttribute ( const <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_attribute_3a">attribute:</a></strong>

<DD>
<P>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setimageattribute">SetImageAttribute</a></h2>
<blockquote>SetImageAttribute() searches the list of image attributes and replaces the attribute value. If it is not found in the list, the attribute name and value is added to the list. If the attribute exists in the list, the value is concatenated to the attribute. SetImageAttribute returns True if the attribute is successfully concatenated or added to the list, otherwise False. If the value is NULL, the matching key is deleted from the list. </blockquote>
<p>The 'comment' and 'label' attributes are treated specially in that
embedded format specifications are translated according to the formatting
rules of TranslateText().</p>
<P>The format of the SetImageAttribute method is:</P>

<blockquote>unsigned int SetImageAttribute ( <A HREF="types.html#Image">Image</A> *image, const char *key, const char *value ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_key_2cvalue_3a">key,value:</a></strong>

<DD>
<P>These character strings are the name and value of an image attribute to replace or add to the list.</P>
</dd>
</dl>

</body>

</html>