ImageMagick: MagickCore, C API for ImageMagick: Monitor or Limit Resource Consumption
Author: ImageMagick Studio LLC
Description: ImageMagick (TM) is a free software suite to create, edit and compose bitmap images. It can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and Bézier curves can be added to images and stretched and rotated. ImageMagick is free software: it is delivered with full source code and can be freely used, copied, modified and distributed. Its license is compatible with the GPL. It runs on all major operating systems. Most of the functionality of ImageMagick can be used interactively from the command line; more often, however, the features are used from programs written in the programming languages Perl, C, C++, Python, PHP, Ruby or Java, for which ready-made ImageMagick interfaces (PerlMagick, Magick++, PythonMagick, MagickWand for PHP, RubyMagick, and JMagick) are available. This makes it possible to modify or create images automa [cell cut: 1159 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, monitor, or, limit, resource, consumption, ImageMagick, PerlMagick, Magick++, Image, Magick

## AcquireMagickResource AcquireMagickResource() acquires resources of the specified type. MagickFalse is returned if the specified resource is exhausted otherwise MagickTrue. The format of the AcquireMagickResource() method is:
      MagickBooleanType AcquireMagickResource(const ResourceType type,
        const MagickSizeType size)
A description of each parameter follows: #### type The type of resource. #### size The number of bytes needed from for this resource. ## AcquireUniqueFileResource AcquireUniqueFileResource() returns a unique file name, and returns a file descriptor for the file open for reading and writing. The format of the AcquireUniqueFileResource() method is:
      int AcquireUniqueFileResource(char *path)
A description of each parameter follows: #### path Specifies a pointer to an array of characters. The unique path name is returned in this array. ## GetMagickResource GetMagickResource() returns the the specified resource in megabytes. The format of the GetMagickResource() method is:
      unsigned long GetMagickResource(const ResourceType type)
A description of each parameter follows: #### type The type of resource. ## ListMagickResourceInfo ListMagickResourceInfo() lists the resource info to a file. The format of the ListMagickResourceInfo method is:
      MagickBooleanType ListMagickResourceInfo(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. ## RelinquishMagickResource RelinquishMagickResource() relinquishes resources of the specified type. The format of the RelinquishMagickResource() method is:
      void RelinquishMagickResource(const ResourceType type,
        const MagickSizeType size)
A description of each parameter follows: #### type The type of resource. #### size The size of the resource. ## RelinquishUniqueFileResource RelinquishUniqueFileResource() relinquishes a unique file resource. The format of the RelinquishUniqueFileResource() method is:
      MagickBooleanType RelinquishUniqueFileResource(const char *path)
A description of each parameter follows: #### name the name of the temporary resource. ## SetMagickResourceLimit SetMagickResourceLimit() sets the limit for a particular resource in megabytes. The format of the SetMagickResourceLimit() method is:
      MagickBooleanType SetMagickResourceLimit(const ResourceType type,
        const unsigned long limit)
A description of each parameter follows: #### type The type of resource. #### limit The maximum limit for the resource. |

Discourse Server | Mailing Lists | Image Gallery | ImageMagick Studio
© 1999-2005 ImageMagick Studio LLC