9attributes - Image Text Attributes Methods9W




"NAME

1

attributes - Image Text Attributes Methods



2page index




&SYNOPSIS

?

DestroyImageAttributes( Image *image );



2page index


$

FUNCTION *DESCRIPTIONS



D

DestroyImageAttributes

a

Method DestroyImageAttributes deallocates memory associated with the image attribute list.

:

The format of the DestroyImageAttributes method is:

d
DestroyImageAttributes ( Image *image );

AA description of each parameter follows:


@

image:

)The address of a structure of type Image.



<

GetImageAttributes

|

Method GetImageAttribute searches the list of image attributes and returns a pointer to attribute if it exists otherwise NULL.

5

The format of the GetImageAttribute method is:


O    ImageAttribute *GetImageAttribute(const Image *image,const char *key)


AA description of each parameter follows:


H

attribute:

FMethod GetImageAttribute returns the attribute if it exists otherwise NULL.

"

image:

)The address of a structure of type Image.

<

key:

EThese character strings are the name of an image attribute to return.



<

SetImageAttributes

:

Method 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. SetImageAttribute returns True if the attribute is successfully replaced or added to the list, otherwise False. If the value is INULL, the matching key is deleted from the list.

5

The format of the SetImageAttribute method is:


@    unsigned int SetImageAttribute(Image *image,const char *key,      const char *value)


AA description of each parameter follows:


B

status:

vMethod SetImageAttribute returns True if the attribute is successfully replaced or added to the list, otherwise False.

"

image:

)The address of a structure of type Image.

J

key,value:

cThese character strings are the name and value of an image attribute to replace or add to the list.
9

page index