[
About ImageMagick
] [ Command-line Tools Processing Options Usage Program Interfaces MagickWand MagickCore PerlMagick Magick++ Architecture ] [ Install from Source Unix Windows Binary Releases Unix Mac OS X Windows Resources ] [ Download ] [ Site Map Links ] [ Sponsors: ] |
BlobToImage() implements direct to memory image formats. It returns the blob as an image. The format of the BlobToImage method is: Image *BlobToImage(const ImageInfo *image_info,const void *blob, const size_t length,ExceptionInfo *exception) A description of each parameter follows: image_infothe image info. blobthe address of a character stream in one of the image formats understood by ImageMagick. lengthThis size_t integer reflects the length in bytes of the blob. exceptionReturn any errors or warnings in this structure. FileToImage() write the contents of a file to an image. The format of the FileToImage method is: MagickBooleanType FileToImage(Image *,const char *filename) A description of each parameter follows: imagethe image. filenamethe filename. GetBlobProperties() returns information about an image blob. The format of the GetBlobProperties method is: const struct stat *GetBlobProperties(const Image *image) A description of each parameter follows: imagethe image. ImageToBlob() implements direct to memory image formats. It returns the image as a blob and its length. The magick member of the ImageInfo structure determines the format of the returned blob (GIF, JPEG, PNG, etc.) The format of the ImageToBlob method is: unsigned char *ImageToBlob(const ImageInfo *image_info,Image *image, size_t *length,ExceptionInfo *exception) A description of each parameter follows: image_infothe image info. imagethe image. lengthThis pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob. exceptionReturn any errors or warnings in this structure. ImageToFile() writes an image to a file. It returns MagickFalse if an error occurs otherwise MagickTrue. The format of the ImageToFile method is: MagickBooleanType ImageToFile(Image *image,char *filename, ExceptionInfo *exception) A description of each parameter follows: imagethe image. filenameWrite the image to this file. exceptionReturn any errors or warnings in this structure. ImagesToBlob() implements direct to memory image formats. It returns the image sequence as a blob and its length. The magick member of the ImageInfo structure determines the format of the returned blob (GIF, JPEG, PNG, etc.) Note, some image formats do not permit multiple images to the same image stream (e.g. JPEG). in this instance, just the first image of the sequence is returned as a blob. The format of the ImagesToBlob method is: unsigned char *ImagesToBlob(const ImageInfo *image_info,Image *images, size_t *length,ExceptionInfo *exception) A description of each parameter follows: image_infothe image info. imagesthe image list. lengthThis pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob. exceptionReturn any errors or warnings in this structure. InjectImageBlob() injects the image with a copy of itself in the specified format (e.g. inject JPEG into a PDF image). The format of the InjectImageBlob method is: MagickBooleanType InjectImageBlob(const ImageInfo *image_info, Image *image,const char *format) A description of each parameter follows: image_infothe image info.. imagethe image. formatthe image format. |