[devel] Fixed some typos in the manual.
diff --git a/libpng.3 b/libpng.3
index 386ae79..93d0540 100644
--- a/libpng.3
+++ b/libpng.3
@@ -1,4 +1,4 @@
-.TH LIBPNG 3 "July 8, 2011"
+.TH LIBPNG 3 "July 10, 2011"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.5beta01
.SH SYNOPSIS
@@ -955,7 +955,7 @@
.SH LIBPNG.TXT
libpng-manual.txt - A description on how to use and modify libpng
- libpng version 1.5.5beta01 - July 8, 2011
+ libpng version 1.5.5beta01 - July 10, 2011
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2011 Glenn Randers-Pehrson
@@ -966,7 +966,7 @@
Based on:
- libpng versions 0.97, January 1998, through 1.5.5beta01 - July 8, 2011
+ libpng versions 0.97, January 1998, through 1.5.5beta01 - July 10, 2011
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2011 Glenn Randers-Pehrson
@@ -1793,7 +1793,7 @@
store the color as an 8-bit or 16-bit color as appropriate. The color contains
separate gray and RGB component values, so you can let libpng produce gray or
RGB output according to the input format, but low bit depth grayscale images
-must always be converted to at least 8-bit format. (Even low low bit depth
+must always be converted to at least 8-bit format. (Even though low bit depth
grayscale images can't have an alpha channel they can have a transparent
color!)
@@ -1932,7 +1932,7 @@
2) Prior to libpng-1.5.4 the background color from a bKGd chunk. This
damages the information provided by an earlier call to png_set_background
-resulting in expected behavior. Libpng-1.5.4 no longer does this.
+resulting in unexpected behavior. Libpng-1.5.4 no longer does this.
3) The number of significant bits in each component value. Libpng uses this to
optimize gamma handling by reducing the internal lookup table sizes.
@@ -2128,7 +2128,8 @@
png_get_bKGD(png_ptr, info_ptr, &background);
- background - background color (PNG_VALID_bKGD)
+ background - background color (of type
+ png_color_16p) (PNG_VALID_bKGD)
valid 16-bit red, green and blue
values, regardless of color_type
@@ -2603,21 +2604,20 @@
you may use this color, or supply another color more suitable for
the current display (e.g., the background color from a web page). You
need to tell libpng how the color is represented, both the format of the
-component values in the color (the number of bits) and the gamme encoding of the
+component values in the color (the number of bits) and the gamma encoding of the
color. The function takes two arguments, background_gamma_mode and need_expand
-to convey this information, however only two combinations are like to be useful:
+to convey this information, however only two combinations are likely to be
+useful:
- png_color_16 my_background;
- png_color_16p image_background;
+ png_color_16p image_background, my_background;
if (png_get_bKGD(png_ptr, info_ptr, &image_background))
png_set_background(png_ptr, image_background,
PNG_BACKGROUND_GAMMA_FILE, 1/*needs to be expanded*/, 1);
else
- png_set_background(png_ptr, &my_background,
+ png_set_background(png_ptr, info_ptr, my_background,
PNG_BACKGROUND_GAMMA_SCREEN, 0/*do not expand*/, 1);
-
The second call was described above - my_background is in the format of the
final, display, output produced by libpng. Because you now know the format of
the PNG it is possible to avoid the need to choose either 8-bit or 16-bit
@@ -3674,7 +3674,8 @@
png_set_bKGD(png_ptr, info_ptr, background);
- background - background color (PNG_VALID_bKGD)
+ background - background color (of type
+ png_color_16p) (PNG_VALID_bKGD)
png_set_text(png_ptr, info_ptr, text_ptr, num_text);
@@ -5379,7 +5380,7 @@
.SH XIV. Y2K Compliance in libpng
-July 8, 2011
+July 10, 2011
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
@@ -5637,7 +5638,7 @@
Thanks to Frank J. T. Wojcik for helping with the documentation.
-Libpng version 1.5.5beta01 - July 8, 2011:
+Libpng version 1.5.5beta01 - July 10, 2011:
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
@@ -5660,7 +5661,7 @@
This code is released under the libpng license.
-libpng versions 1.2.6, August 15, 2004, through 1.5.5beta01, July 8, 2011, are
+libpng versions 1.2.6, August 15, 2004, through 1.5.5beta01, July 10, 2011, are
Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors
@@ -5759,7 +5760,7 @@
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
-July 8, 2011
+July 10, 2011
.\" end of man page