[devel] Reverted type of "my_background" to png_color_16 in the manual.
This commit is contained in:
parent
d3a0b23c1b
commit
cb47e20509
@ -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
|
||||||
|
5
libpng.3
5
libpng.3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user