NAMElist - Working with Image Lists
SYNOPSISAppendImageToList( Image *images, const Image *image ); Image * CloneImageList( const Image *images, ExceptionInfo *exception ); DeleteImageFromList( Image ** images ); void DestroyImageList( Image *image ); Image * GetFirstImageInList( const Image *images ); Image * GetImageFromList( const Image *images, const long index ); long GetImageIndexInList( const Image *images ); unsigned long GetImageListLength( const Image *images ); Image * GetLastImageInList( const Image *images ); Image * GetNextImageInList( const Image *images ); Image * GetPreviousImageInList( const Image *images ); Image ** ImageListToArray( const Image *images, ExceptionInfo *exception ); InsertImageInList( Image ** images, Image *image ); Image * NewImageList( void ); PrependImageToList( Image *images, Image *image ); Image * RemoveFirstImageFromList( Image ** images ); Image * RemoveImageFromList( Image ** images ); Image * RemoveLastImageFromList( Image ** images ); ReplaceImageInList( Image ** images, Image *image ); ReverseImageList( const Image ** images ); SpliceImageIntoList( Image ** images, const unsigned unsigned long, const Image *splice ); Image * SplitImageList( Image *images );
FUNCTION DESCRIPTIONS
AppendImageToListAppendImageToList() appends an image to the end of the list. The format of the AppendImageToList method is: AppendImageToList ( Image *images, const Image *image ); A description of each parameter follows:
CloneImageListCloneImageList() returns a duplicate of the image list. The format of the CloneImageList method is: Image *CloneImageList ( const Image *images, ExceptionInfo *exception ); A description of each parameter follows:
DeleteImageFromListDeleteImageFromList() deletes an image from the list. The format of the DeleteImageFromList method is: DeleteImageFromList ( Image **images ); A description of each parameter follows:
DestroyImageListDestroyImageList() destroys an image list. The format of the DestroyImageList method is: void DestroyImageList ( Image *image ); A description of each parameter follows:
GetFirstImageInListGetFirstImageInList() returns a pointer to the first image in the list. The format of the GetFirstImageInList method is: Image *GetFirstImageInList ( const Image *images ); A description of each parameter follows:
GetImageFromListGetImageFromList() returns an image at the specified offset from the list. The format of the GetImageFromList method is: Image *GetImageFromList ( const Image *images, const long index ); A description of each parameter follows:
GetImageIndexInListGetImageIndexInList() returns the offset in the list of the specified image. The format of the GetImageIndexInList method is: long GetImageIndexInList ( const Image *images ); A description of each parameter follows:
GetImageListLengthGetImageListLength() returns the length of the list ( the number of images in the list ) . The format of the GetImageListLength method is: unsigned long GetImageListLength ( const Image *images ); A description of each parameter follows:
GetLastImageInListGetLastImageInList() returns a pointer to the last image in the list. The format of the GetLastImageInList method is: Image *GetLastImageInList ( const Image *images ); A description of each parameter follows:
GetNextImageInListGetNextImageInList() returns the next image in the list. The format of the GetNextImageInList method is: Image *GetNextImageInList ( const Image *images ); A description of each parameter follows:
GetPreviousImageInListGetPreviousImageInList() returns the previous image in the list. The format of the GetPreviousImageInList method is: Image *GetPreviousImageInList ( const Image *images ); A description of each parameter follows:
ImageListToArrayImageListToArray() is a convenience method that converts an image list to a sequential array. For example, group = ImageListToArray ( images, exception ); for ( i = 0; i < n; i++ ) puts ( group[i]->filename ) ;; The format of the ImageListToArray method is: Image **ImageListToArray ( const Image *images, ExceptionInfo *exception ); A description of each parameter follows:
InsertImageInListInsertImageInList() inserts an image in the list. The format of the InsertImageInList method is: InsertImageInList ( Image **images, Image *image ); A description of each parameter follows:
NewImageListNewImageList() creates an empty image list. The format of the NewImageList method is: Image *NewImageList ( void );
PrependImageToListPrependImageToList() prepends the image to the beginning of the list. The format of the PrependImageToList method is: PrependImageToList ( Image *images, Image *image ); A description of each parameter follows:
RemoveImageFromListRemoveImageFromList() removes an image from the list. The format of the RemoveImageFromList method is: Image *RemoveImageFromList ( Image **images ); A description of each parameter follows:
RemoveFirstImageFromListRemoveFirstImageFromList() removes the first image in the list. The format of the RemoveFirstImageFromList method is: Image *RemoveFirstImageFromList ( Image **images ); A description of each parameter follows:
RemoveLastImageFromListRemoveLastImageFromList() removes the last image from the list. The format of the RemoveLastImageFromList method is: Image *RemoveLastImageFromList ( Image **images ); A description of each parameter follows:
ReplaceImageInListReplaceImageInList() replaces an image in the list. The format of the ReplaceImageInList method is: ReplaceImageInList ( Image **images, Image *image ); A description of each parameter follows:
ReverseImageListReverseImageList() reverses the image list. The format of the ReverseImageList method is: ReverseImageList ( const Image **images ); A description of each parameter follows:
SpliceImageIntoListSpliceImageIntoList() removes 'length' images from the list and replaces them with the specified splice. The format of the SpliceImageIntoList method is: SpliceImageIntoList ( Image **images, const unsigned unsigned long, const Image *splice ); A description of each parameter follows:
SplitImageListSplitImageList() splits an image into two lists. The format of the SplitImageList method is: Image *SplitImageList ( Image *images ); A description of each parameter follows:
|