blob -
Image * BlobToImage( const ImageInfo *image_info, const char *blob, const size_t length );
void DestroyBlobInfo( BlobInfo *blob_info
);
void GetBlobInfo( BlobInfo *blob_info
);
char * ImageToBlob( const ImageInfo *image_info, Image *image, size_t *length
);
void SetBlobQuantum( BlobInfo *blob_info, const size_t quantum );
Method 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 char *blob, const size_t length );
A description of each parameter follows:
Method BlobToImage returns an image from the supplied blob. If an error occurs NULL is returned.
Specifies a pointer to an ImageInfo structure.
The address of a character stream in one of the image formats understood by ImageMagick.
This size_t integer reflects the length in bytes of the blob.
Method DestroyBlobInfo deallocates memory associated with an BlobInfo structure.
The format of the DestroyBlobInfo method is:
void DestroyBlobInfo ( BlobInfo *blob_info );
A description of each parameter follows:
Specifies a pointer to a BlobInfo structure.
Method GetBlobInfo initializes the BlobInfo structure.
The format of the GetBlobInfo method is:
void GetBlobInfo ( BlobInfo *blob_info );
A description of each parameter follows:
Specifies a pointer to a BlobInfo structure.
Method ImageToBlob implements direct to memory image formats. It returns the image as a blob and its length. The magick member of the Image structure determines the format of the returned blob (GIG, JPEG, PNG, etc.).
The format of the ImageToBlob method is:
char *ImageToBlob ( const ImageInfo *image_info, Image *image, size_t *length );
A description of each parameter follows:
Method ImageToBlob returns a chunk of memory written in the desired image format (e.g. JPEG, GIF, etc.). If an error occurs NULL is returned.
Specifies a pointer to an ImageInfo structure.
The address of a structure of type Image.
This pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob.
Method SetBlobQuantum set the current value of the blob quantum. This is the size in bytes to add to a blob when writing to a blob exceeds its current length.
The format of the SetBlobQuantum method is:
void SetBlobQuantum ( BlobInfo *blob_info, const size_t quantum );
A description of each parameter follows:
A pointer to a BlobInfo structure.
A size_t that reflects the number of bytes to increase a blob.