encode - Utility Routines to Write Image Formats
status=WriteImage(image_info,image)
status=WriteJPEGImage(image_info,image)
Function WriteJPEGImage writes a JPEG image file and returns it. It
allocates the memory necessary for the new Image structure and returns a
pointer to the new image.
The format of the WriteJPEGImage routine is:
status=WriteJPEGImage(image_info,image)
A description of each parameter follows:
- status:
-
Function WriteJPEGImage return True if the image is written. False is
returned is there is of a memory shortage or if the image file cannot be
opened for writing.
- image_info:
-
Specifies a pointer to an ImageInfo structure.
- jpeg_image:
-
A pointer to a Image structure.
Function WriteImage writes an image to a file. You can specify a particular
image format by prefixing the file with the image type and a colon (i.e.
ps:image) or specify the image type as the filename suffix (i.e. image.ps).
The format of the WriteImage routine is:
status=WriteImage(image_info,image)
A description of each parameter follows:
- status:
-
Function WriteImage return True if the image is written. False is returned
is 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.