png_get_bKGD

Name

png_get_bKGD -- get background color for given image

Synopsis

#include <png.h>

png_uint_32 png_get_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p * background);

Description

png_get_bKGD() shall return the background color to "background" if the validity flag for background is set.

Return Value

On success, png_get_bKGD() shall return PNG_INFO_bKGD. Otherwise, png_get_bKGD() shall return 0.