[libpng15] Updated man page about png_get_palette_max().

This commit is contained in:
Glenn Randers-Pehrson
2013-02-08 09:15:59 -06:00
parent e3ab2fe6e9
commit 06364d4585
2 changed files with 24 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
Libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.5.15beta04 - February 7, 2013
libpng version 1.5.15beta04 - February 8, 2013
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2012 Glenn Randers-Pehrson
@@ -11,7 +11,7 @@ Libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.5.15beta04 - February 7, 2013
libpng versions 0.97, January 1998, through 1.5.15beta04 - February 8, 2013
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2012 Glenn Randers-Pehrson
@@ -4162,12 +4162,16 @@ This is enabled by default but can be disabled in each png_ptr with
1: enable
Retrieving the maximum palette index found was added at libpng-1.5.15.
This statement must appear after png_read_png() or png_read_image().
This statement must appear after png_read_png() or png_read_image() while
reading, and after png_write_png() or png_write_image() while writing.
int max_palette = png_get_palette_max(png_ptr, info_ptr);
This will return the maximum palette index found, or "-1" if the palette
was not checked, or "0" if no palette was found.
This will return the maximum palette index found in the image, or "-1" if
the palette was not checked, or "0" if no palette was found. Note that this
does not account for any palette index used by ancillary chunks such as the
bKGD chunk; you must check those separately to determine the maximum
palette index actually used.
A. Changes that affect users of libpng
@@ -4617,7 +4621,7 @@ Other rules can be inferred by inspecting the libpng source.
XIV. Y2K Compliance in libpng
February 7, 2013
February 8, 2013
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.