ImageMagick: MagickCore, C API for ImageMagick: Memory Allocation
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:, memory, allocation, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand

## AcquireMagickMemory AcquireMagickMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use. The format of the AcquireMagickMemory method is:
      void *AcquireMagickMemory(const size_t size)
A description of each parameter follows: ##### size The size of the memory in bytes to allocate. ## CopyMagickMemory CopyMagickMemory() copies size bytes from memory area source to the destination. Copying between objects that overlap will take place correctly. It returns destination. The format of the CopyMagickMemory method is:
      void *CopyMagickMemory(void *destination,const void *source,
        const size_t size)
A description of each parameter follows: ##### destination The destination. ##### source The source. ##### size The size of the memory in bytes to allocate. ## RelinquishMagickMemory RelinquishMagickMemory() zeros memory that has been allocated, frees it for reuse. The format of the RelinquishMagickMemory method is:
      void *RelinquishMagickMemory(void *memory)
A description of each parameter follows: ##### memory A pointer to a block of memory to free for reuse. ## ResetMagickMemory ResetMagickMemory() fills the first size bytes of the memory area pointed to by memory with the constant byte c. The format of the ResetMagickMemory method is:
      void *ResetMagickMemory(void *memory,int byte,const size_t size)
A description of each parameter follows: ##### memory A pointer to a memory allocation. ##### byte Set the memory to this value. ##### size Size of the memory to reset. ## ResizeMagickMemory ResizeMagickMemory() changes the size of the memory and returns a pointer to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes. The format of the ResizeMagickMemory method is:
      void *ResizeMagickMemory(void *memory,const size_t size)
A description of each parameter follows: ##### memory A pointer to a memory allocation. ##### size The new size of the allocated memory. |

Discourse Server • Mailing Lists • ImageMagick Studio