Tachyon (current)  Current Main Branch
pngfile.h
Go to the documentation of this file.
1 /*
2  * pngfile.h - This file deals with PNG format image files (reading/writing)
3  *
4  * (C) Copyright 1994-2022 John E. Stone
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  * $Id: pngfile.h,v 1.5 2022/02/18 17:55:28 johns Exp $
8  *
9  */
10 
11 /* read 24-bit RGB PNG */
12 int readpng(const char *name, int *xres, int *yres, unsigned char **imgdata);
13 
14 /* write 24-bit RGB compressed PNG file */
15 int writepng(const char *name, int xres, int yres, unsigned char *imgdata);
16 
17 /* write 32-bit RGBA compressed PNG file */
18 int writepng_alpha(const char *name, int xres, int yres, unsigned char *imgdata);
19 
20 
21 
int readpng(const char *name, int *xres, int *yres, unsigned char **imgdata)
Definition: pngfile.c:30
int writepng_alpha(const char *name, int xres, int yres, unsigned char *imgdata)
int writepng(const char *name, int xres, int yres, unsigned char *imgdata)
Definition: pngfile.c:34