1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<title>attribute - Access key,value image attributes</title>
5
<link rev="made" href="mailto:bfriesen@scooby.simplesystems.org" />
8
<body style="background-color: white">
10
<P><a name="__index__"></a></P>
15
<li><a href="#name">NAME</a></li>
16
<li><a href="#synopsis">SYNOPSIS</a></li>
17
<li><a href="#function_descriptions">FUNCTION DESCRIPTIONS</a></li>
20
<li><a href="#destroyimageattributes">DestroyImageAttributes</a></li>
21
<li><a href="#getimageattribute">GetImageAttribute</a></li>
22
<li><a href="#getimageclippingpathattribute">GetImageClippingPathAttribute</a></li>
23
<li><a href="#setimageattribute">SetImageAttribute</a></li>
32
<h1><a name="name">NAME</a></h1>
33
<P>attribute - Access key,value image attributes</P>
37
<h1><a name="synopsis">SYNOPSIS</a></h1>
38
<P><strong>DestroyImageAttributes</strong>( Image *image );</P>
39
<P>const ImageAttribute * <strong>GetImageAttribute</strong>( const Image *image, const char *key );</P>
40
<P>const ImageAttribute * <strong>GetImageClippingPathAttribute</strong>( const Image *image );</P>
41
<P>unsigned int <strong>SetImageAttribute</strong>( Image *image, const char *key, const char *value );</P>
45
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
48
<h2><a name="destroyimageattributes">DestroyImageAttributes</a></h2>
49
<blockquote>DestroyImageAttributes() deallocates memory associated with the image attribute list. </blockquote><P>The format of the DestroyImageAttributes method is:</P>
50
<blockquote>DestroyImageAttributes ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
52
<dt><strong><a name="item_o_image_3a">image:</a></strong><br />
60
<h2><a name="getimageattribute">GetImageAttribute</a></h2>
61
<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>
62
<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>
64
<dt><strong>image:</strong><br />
70
<dt><strong><a name="item_o_key_3a">key:</a></strong><br />
73
These character strings are the name of an image attribute to return.
78
<h2><a name="getimageclippingpathattribute">GetImageClippingPathAttribute</a></h2>
79
<P>Method GetImageClippingPathAttribute searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</P>
80
<P>The format of the GetImageClippingPathAttribute method is:</P>
81
<blockquote>const ImageAttribute *GetImageClippingPathAttribute ( const <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
83
<dt><strong><a name="item_o_attribute_3a">attribute:</a></strong><br />
86
Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.
89
<dt><strong>image:</strong><br />
97
<h2><a name="setimageattribute">SetImageAttribute</a></h2>
98
<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 format of the SetImageAttribute method is:</P>
99
<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>
101
<dt><strong>image:</strong><br />
107
<dt><strong><a name="item_o_key_2cvalue_3a">key,value:</a></strong><br />
110
These character strings are the name and value of an image attribute to replace or add to the list.