Home | History | Annotate | Download | only in libpng

Lines Matching refs:png

14 /* This is an example of how to use libpng to read and write PNG files.
23 * working PNG reader/writer, see pngtest.c, included in this distribution;
27 /* The simple, but restricted, approach to reading a PNG file or data stream
32 * The following code reads PNG image data from a file and writes it, in a
41 #include <png.h>
59 /* Set the format in which to read the PNG file; this code chooses a
140 /* That's it ;-) Of course you probably want to do more with PNG files than
141 * just converting them all to 32-bit RGBA PNG files; you can do that between
149 * one of the predefined macros from png.h (as above):
196 /* If your program needs more information from the PNG data it reads, or if you
210 * program requires before including png.h:
212 #include <png.h>
224 /* Check to see if a file is a PNG file using png_sig_cmp(). png_sig_cmp()
225 * returns zero if the image is a PNG and nonzero if it isn't a PNG.
228 * if the file can be opened and is a PNG, 0 (false) otherwise.
242 * you have a PNG file, and call png_set_sig_bytes().
249 /* Open the prospective PNG file. */
263 /* Read a PNG file. You may want to return an error code if the read
330 #ifdef streams /* PNG file I/O method 1 */
334 #else no_streams /* PNG file I/O method 2 */
360 * PNG file before the first IDAT (image data chunk). REQUIRED
414 * even if the PNG file supplies a background, you are not required to
685 * mentioned in the Reading PNG files section. For now, you _must_
714 * PNG read buffer.
763 /* Write a png file */
854 * the png structure.