NAME

magick - Methods to Read or List ImageMagick Image formats


SYNOPSIS

MagickInfo * GetMagickInfo( const char *tag );

void ListMagickInfo( FILE *file );

MagickInfo * RegisterMagickInfo( const char *tag, Image *(* decoder )( const ImageInfo *), unsigned int(* encoder )( const ImageInfo *, Image *), unsigned int(* magick )( const unsigned char *, const unsigned int ), const unsigned int adjoin, const unsigned int blob_support, const char *description );


FUNCTION DESCRIPTIONS


GetMagickInfo

Method GetMagickInfo returns a pointer MagickInfo structure that matches the specified tag. If tag is NULL, the head of the image format list is returned.

The format of the GetMagickInfo method is:

MagickInfo *GetMagickInfo ( const char *tag );

A description of each parameter follows:

magick_info:

Method GetMagickInfo returns a pointer MagickInfo structure that matches the specified tag.

tag:

a character string that represents the image format we are looking for.


ListMagickInfo

Method ListMagickInfo lists the image formats to a file.

The format of the ListMagickInfo method is:

void ListMagickInfo ( FILE *file );

A description of each parameter follows.

file:

A pointer to a FILE structure.


RegisterMagickInfo

Method RegisterMagickInfo adds attributes for a particular image format to the list of supported formats. The attributes include the image format tag, 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.

The format of the RegisterMagickInfo method is:

MagickInfo *RegisterMagickInfo ( const char *tag, Image *( *decoder ) ( const ImageInfo *), unsigned int ( *encoder ) ( const ImageInfo *, Image *), unsigned int ( *magick ) ( const unsigned char *, const unsigned int ), const unsigned int adjoin, const unsigned int blob_support, const char *description );

A description of each parameter follows:

magick_info:

Method RegisterMagickInfo returns a pointer MagickInfo structure that contains the specified tag info.

tag:

a character string that represents the image format we are looking for.

decoder:

a method that is used to read the image format.

encoder:

a method that is used to write the image format.

magick:

this method returns True if the image format signature matches a subset of the first few bytes of the file or blob.

adjoin:

a value greater than 0 means the image format can save more than one frame to the file or blob.

blob_support:

a value greater than 0 means the format supports native in-memory I/O.

description:

a character string that describes the image format.