#include <stdio.h>
#include <gandalf/common/misc_defs.h>
#include <gandalf/image/image_defs.h>
Go to the source code of this file.
Functions | |
Gan_Image * | gan_read_png_image_stream (FILE *infile, Gan_Image *image, double gam) |
Reads an image file in PNG format from a file stream. | |
Gan_Image * | gan_read_png_image (const char *filename, Gan_Image *image, double gam) |
Reads an image file in PNG format. | |
Gan_Bool | gan_write_png_image_stream (FILE *outfile, Gan_Image *image, double gam) |
Writes an image file to a stream in PNG format. | |
Gan_Bool | gan_write_png_image (const char *filename, Gan_Image *image, double gam) |
Writes an image file in PNG format. |
Part of: Gandalf Library
Revision: Last edited: Author:
Copyright: (c) 2000 Imagineer Software Limited
|
Reads an image file in PNG format.
NULL a new image is dynamically allocated; otherwise the already allocated image structure is reused. gam identifies the gamma correction which the opened image should have. It should be one if no gamma correction needs to be applied.
|
|
Reads an image file in PNG format from a file stream.
NULL a new image is dynamically allocated, otherwise the already allocated image structure is reused. gam identifies the gamma correction which the opened image should have. It should be one if no gamma correction needs to be applied.
|
|
Writes an image file in PNG format.
|
|
Writes an image file to a stream in PNG format.
|