decode - Utility Routines to Read Image Formats
image=ReadFITSImage(image_info)
image=ReadImage(image_info)
image=ReadMIFFImage(filename)
image=ReadPICTImage(image_info)
image=ReadTIMImage(image_info)
image=ReadXImage(image_info,ximage_info);
Method ReadFITSImage reads a FITS 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 ReadFITSImage routine is:
image=ReadFITSImage(image_info)
A description of each parameter follows:
Method ReadFITSImage returns a pointer to the image after reading. A null image is returned if there is a a memory shortage or if the image cannot be read.
Specifies the name of the image to read.
Method ReadMIFFImage reads a MIFF 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 ReadMIFFImage routine is:
image=ReadMIFFImage(filename)
A description of each parameter follows:
Method ReadMIFFImage returns a pointer to the image after reading. A null image is returned if there is a a memory shortage or if the image cannot be read.
Specifies a pointer to an ImageInfo structure.
Method ReadPICTImage reads an Apple Macintosh QuickDraw/PICT 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 ReadPICTImage routine is:
image=ReadPICTImage(image_info)
A description of each parameter follows:
Method ReadPICTImage returns a pointer to the image after reading. A null image is returned if there is a a memory shortage or if the image cannot be read.
Specifies a pointer to an ImageInfo structure.
Method ReadTIMImage reads a PSX TIM image file and returns it. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
Contributed by os@scee.sony.co.uk.
The format of the ReadTIMImage routine is:
image=ReadTIMImage(image_info)
A description of each parameter follows:
Method ReadTIMImage returns a pointer to the image after reading. A null image is returned if there is a a memory shortage or if the image cannot be read.
Specifies a pointer to an ImageInfo structure.
Procedure ReadXImage reads an image from an X window.
The format of the ReadXImage routine is:
image=ReadXImage(image_info,ximage_info);
A description of each parameter follows:
Specifies a pointer to an ImageInfo structure.
Specifies a pointer to an XImportInfo structure.
Method ReadImage reads an image and returns it. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. By default, the image format is determined by its magic number. To specify a particular image format, precede the filename with an explicit image format name and a colon (i.e. ps:image) or as the filename suffix (i.e. image.ps).
The format of the ReadImage routine is:
image=ReadImage(image_info)
A description of each parameter follows:
Method ReadImage returns a pointer to the image after reading. A null image is returned if there is a a memory shortage or if the image cannot be read.
Specifies a pointer to an ImageInfo structure.