[devel] Reverted type of "my_background" to png_color_16 in the manual.

This commit is contained in:
Glenn Randers-Pehrson 2011-07-10 06:55:14 -05:00
parent d3a0b23c1b
commit cb47e20509
2 changed files with 6 additions and 4 deletions

View File

@ -1654,13 +1654,14 @@ color. The function takes two arguments, background_gamma_mode and need_expand
to convey this information, however only two combinations are likely to be to convey this information, however only two combinations are likely to be
useful: useful:
png_color_16p image_background, my_background; png_color_16 my_background;
png_color_16p image_background;
if (png_get_bKGD(png_ptr, info_ptr, &image_background)) if (png_get_bKGD(png_ptr, info_ptr, &image_background))
png_set_background(png_ptr, image_background, png_set_background(png_ptr, image_background,
PNG_BACKGROUND_GAMMA_FILE, 1/*needs to be expanded*/, 1); PNG_BACKGROUND_GAMMA_FILE, 1/*needs to be expanded*/, 1);
else else
png_set_background(png_ptr, my_background, png_set_background(png_ptr, &my_background,
PNG_BACKGROUND_GAMMA_SCREEN, 0/*do not expand*/, 1); PNG_BACKGROUND_GAMMA_SCREEN, 0/*do not expand*/, 1);
The second call was described above - my_background is in the format of the The second call was described above - my_background is in the format of the

View File

@ -2609,13 +2609,14 @@ color. The function takes two arguments, background_gamma_mode and need_expand
to convey this information, however only two combinations are likely to be to convey this information, however only two combinations are likely to be
useful: useful:
png_color_16p image_background, my_background; png_color_16 my_background;
png_color_16p image_background;
if (png_get_bKGD(png_ptr, info_ptr, &image_background)) if (png_get_bKGD(png_ptr, info_ptr, &image_background))
png_set_background(png_ptr, image_background, png_set_background(png_ptr, image_background,
PNG_BACKGROUND_GAMMA_FILE, 1/*needs to be expanded*/, 1); PNG_BACKGROUND_GAMMA_FILE, 1/*needs to be expanded*/, 1);
else else
png_set_background(png_ptr, my_background, png_set_background(png_ptr, &my_background,
PNG_BACKGROUND_GAMMA_SCREEN, 0/*do not expand*/, 1); PNG_BACKGROUND_GAMMA_SCREEN, 0/*do not expand*/, 1);
The second call was described above - my_background is in the format of the The second call was described above - my_background is in the format of the