< encode - Utility Routines to Write Image Formats�� �  0 




NAME

0encode - Utility Routines to Write Image Formats








SYNOPSIS

4status=WriteImage(image_info,image)

8status=WriteJPEGImage(image_info,image)






9

FUNCTION DESCRIPTIONS






+

WriteJPEGImage

CFunction WriteJPEGImage writes a JPEG image file and returns it. ItHallocates the memory necessary for the new Image structure and returns apointer to the new image.

,The format of the WriteJPEGImage routine is:

4

        status=WriteJPEGImage(image_info,image)


(A description of each parameter follows:



$
status:
EFunction WriteJPEGImage return True if the image is written. False isHreturned is there is of a memory shortage or if the image file cannot beopened for writing.



image_info:
.Specifies a pointer to an ImageInfo structure.



jpeg_image:
A pointer to a Image structure.






#

WriteImage

KFunction WriteImage writes an image to a file. You can specify a particularHimage format by prefixing the file with the image type and a colon (i.e.Kps:image) or specify the image type as the filename suffix (i.e. image.ps).

(The format of the WriteImage routine is:

0

        status=WriteImage(image_info,image)


(A description of each parameter follows:




status:
JFunction WriteImage return True if the image is written. False is returnedBis there is a memory shortage or if the image file fails to write.



image_info:
.Specifies a pointer to an ImageInfo structure.



image:
A pointer to a Image structure.