#include <gandalf/image/image_defs.h>
Go to the source code of this file.
Enumerations | |
enum | Gan_ImageFileFormat { GAN_PNG_FORMAT, GAN_PBM_FORMAT, GAN_PGM_FORMAT, GAN_PPM_FORMAT, GAN_TIFF_FORMAT, GAN_JPEG_FORMAT, GAN_UNKNOWN_FORMAT } |
Image file formats supported by Gandalf. More... | |
Functions | |
Gan_ImageFileFormat | gan_image_interpret_format_string (const char *format_string) |
Interprets a string as an image file format. | |
Gan_Image * | gan_image_read (const char *filename, Gan_ImageFileFormat file_format, Gan_Image *image) |
Reads an image file. | |
Gan_Image * | gan_image_read_stream (FILE *infile, Gan_ImageFileFormat file_format, Gan_Image *image) |
Reads an image file from a file stream. | |
Gan_Bool | gan_image_write (const char *filename, Gan_ImageFileFormat file_format, Gan_Image *image) |
Writes an image file. | |
Gan_Bool | gan_image_write_stream (FILE *outfile, Gan_ImageFileFormat file_format, Gan_Image *image) |
Writes an image file to a file stream. |
Part of: Gandalf Library
Revision: Last edited: Author:
Copyright: (c) 2000 Imagineer Software Limited
|
Interprets a string as an image file format.
|
|
Reads an image file.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
If the file format is known, it should be specified in file_format; otherwise pass file_format as GAN_UNKNOWN_FORMAT and the function will try to determine the file format.
|
|
Reads an image file from a file stream.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused.
If the file format is known, it should be specified by file_format; otherwise pass file_format as GAN_UNKNOWN_FORMAT and the function will try to determine the file format.
|
|
Writes an image file.
The given file format file_format should support the format and type of the image; otherwise an error is reported and GAN_FALSE is returned.
|
|
Writes an image file to a file stream.
The given file format file_format should support the format and type of the image; otherwise an error is reported and GAN_FALSE is returned.
|