NAME>/


NAME



blob - 






(

SYNOPSIS



kImage * BlobToImage( const ImageInfo *image_info, const char *blob, const size_t length );



Kvoid DestroyBlobInfo( BlobInfo *blob_info );



Gvoid GetBlobInfo( BlobInfo *blob_info );



]char * ImageToBlob( const ImageInfo *image_info, Image *image, unsigned long*length );



Svoid SetBlobQuantum( BlobInfo *blob_info, const size_t quantum );






B

FUNCTION DESCRIPTIONS






.

BlobToImage



HMethod BlobToImage implements direct to memory image formats. It returnsthe 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:


7

image:


OMethod BlobToImage returns an image from the supplied blob. If an error occurs &NULL is returned.

'

image_info:


.Specifies a pointer to an ImageInfo structure.

!

blob:


KThe address of a character stream in one of the image formats understood by ImageMagick.

#

length:


?This unsigned integer reflects the length in bytes of the blob.






6

DestroyBlobInfo



EMethod DestroyBlobInfo deallocates memory associated with an BlobInfo structure.



,The format of the DestroyBlobInfo method is:

G
void DestroyBlobInfo ( BlobInfo *blob_info );


=A description of each parameter follows:


&

blob_info:


,Specifies a pointer to a BlobInfo structure.






.

GetBlobInfo



6Method GetBlobInfo initializes the BlobInfo structure.



(The format of the GetBlobInfo method is:

C
void GetBlobInfo ( BlobInfo *blob_info );


=A description of each parameter follows:


&

blob_info:


,Specifies a pointer to a BlobInfo structure.






.

ImageToBlob



Á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, unsigned long *length );


=A description of each parameter follows:


!

blob:


WMethod ImageToBlob returns a chunk of memory written in the desired image format (e.g. JPEG, 4GIF, etc.). If an error occurs &NULL is returned.

'

image_info:


.Specifies a pointer to an ImageInfo structure.

"

image:


)The address of a structure of type Image.

#

length:


GThis pointer to an unsigned int sets the initial length of the blob. On2return, it reflects the actual length of the blob.






4

SetBlobQuantum



HMethod SetBlobQuantum set the current value of the blob quantum. This isEthe size in bytes to add to a blob when writing to a blob exceeds itscurrent length.



+The format of the SetBlobQuantum method is:

\
void SetBlobQuantum ( BlobInfo *blob_info, const size_t quantum );


=A description of each parameter follows:


&

blob_info:


7A pointer to a BlobInfo structure.

$

quantum:


KA size_t that reflects the number of bytes to increasea blob.