ImageMagick: MagickCore, C API for ImageMagick: Loadable Modules
Author: ImageMagick Studio LLC
Description: ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (P [cell cut: 1167 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, loadable, modules, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand

## DestroyMagickList DestroyMagickList() unregisters any previously loaded modules and exits the module loaded environment. The format of the DestroyMagickList module is:
      void DestroyMagickList(void)
## ExecuteModuleProcess ExecuteModuleProcess() executes a dynamic modules. The format of the ExecuteModuleProcess module is:
      MagickBooleanType ExecuteModuleProcess(const char *tag,Image **image,
        const int argc,char **argv)
A description of each parameter follows: ##### tag a character string that represents the name of the particular module. ##### image The image. ##### argc Specifies a pointer to an integer describing the number of elements in the argument vector. ##### argv Specifies a pointer to a text array containing the command line arguments. ## GetModuleInfo GetModuleInfo() returns a pointer to a ModuleInfo structure that matches the specified tag. If tag is NULL, the head of the module list is returned. If no modules are loaded, or the requested module is not found, NULL is returned. The format of the GetModuleInfo module is:
      const ModuleInfo *GetModuleInfo(const char *tag,ExceptionInfo *exception)
A description of each parameter follows: ##### tag a character string that represents the image format we are looking for. ##### exception Return any errors or warnings in this structure. ## GetModuleInfoList GetModuleInfoList() returns any modules that match the specified pattern. The format of the GetModuleInfoList function is:
      const ModuleInfo **GetModuleInfoList(const char *pattern,
        unsigned long *number_modules,ExceptionInfo *exception)
A description of each parameter follows: ##### pattern Specifies a pointer to a text string containing a pattern. ##### number_modules This integer returns the number of modules in the list. ##### exception Return any errors or warnings in this structure. ## GetModuleList GetModuleList() returns any image format modules that match the specified pattern. The format of the GetModuleList function is:
      char **GetModuleList(const char *pattern,unsigned long *number_modules,
        ExceptionInfo *exception)
A description of each parameter follows: ##### pattern Specifies a pointer to a text string containing a pattern. ##### number_modules This integer returns the number of modules in the list. ##### exception Return any errors or warnings in this structure. ## GetMagickModulePath GetMagickModulePath() finds a module with the specified module type and filename. The format of the GetMagickModulePath module is:
      MagickBooleanType GetMagickModulePath(const char *filename,
        MagickModuleType module_type,char *path,ExceptionInfo *exception)
A description of each parameter follows: ##### filename The module file name. ##### module_type The module type: MagickCoderModule or MagickFilterModule. ##### path The path associated with the filename. ##### exception Return any errors or warnings in this structure. ## ListModuleInfo ListModuleInfo() lists the module info to a file. The format of the ListModuleInfo module is:
      MagickBooleanType ListModuleInfo(FILE *file,ExceptionInfo *exception)
A description of each parameter follows. ##### file An pointer to a FILE. ##### exception Return any errors or warnings in this structure. ## OpenModule OpenModule() loads a module, and invokes its registration module. It returns MagickTrue on success, and MagickFalse if there is an error. The format of the OpenModule module is:
      MagickBooleanType OpenModule(const char *module,ExceptionInfo *exception)
A description of each parameter follows: ##### module a character string that indicates the module to load. ##### exception Return any errors or warnings in this structure. ## OpenModules OpenModules() loads all available modules. The format of the OpenModules module is:
      MagickBooleanType OpenModules(ExceptionInfo *exception)
A description of each parameter follows: ##### exception Return any errors or warnings in this structure. ## RegisterModule RegisterModule() adds an entry to the module list. It returns a pointer to the registered entry on success. The format of the RegisterModule module is:
      ModuleInfo *RegisterModule(const ModuleInfo *module_info,
        ExceptionInfo *exception)
A description of each parameter follows: ##### info a pointer to the registered entry is returned. ##### module_info a pointer to the ModuleInfo structure to register. ##### exception Return any errors or warnings in this structure. ## TagToCoderModuleName TagToCoderModuleName() munges a module tag and obtains the filename of the corresponding module module. The format of the TagToCoderModuleName module is:
      char *TagToCoderModuleName(const char *tag,char *name)
A description of each parameter follows: ##### tag a character string representing the module tag. ##### name return the module module name here. ## TagToFilterModuleName TagToFilterModuleName() munges a module tag and returns the filename of the corresponding filter module. The format of the TagToFilterModuleName module is:
      void TagToFilterModuleName(const char *tag,char name)
A description of each parameter follows: ##### tag a character string representing the module tag. ##### name return the filter name here. ## TagToModuleName TagToModuleName() munges the module tag name and returns an upper-case tag name as the input string, and a user-provided format. The format of the TagToModuleName module is:
      TagToModuleName(const char *tag,const char *format,char *module)
A description of each parameter follows: ##### tag the module tag. ##### format a sprintf-compatible format string containing s where the upper-case tag name is to be inserted. ##### module pointer to a destination buffer for the formatted result. ## UnregisterModule UnregisterModule() unloads a module, and invokes its de-registration module. Returns MagickTrue on success, and MagickFalse if there is an error. The format of the UnregisterModule module is:
      MagickBooleanType UnregisterModule(const ModuleInfo *module_info,
        ExceptionInfo *exception)
A description of each parameter follows: ##### module_info The module info. ##### exception Return any errors or warnings in this structure. |

Discourse Server • Mailing Lists • ImageMagick Studio