png_get_PLTE

Name

png_get_PLTE -- get image palette information from png_info structure

Synopsis

#include <png.h>

png_uint_32 png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp * palette, int * num_palette);

Description

png_get_PLTE() gets palette information from png_info structure. "palette" holds an array of color values with "num_palette" entries.

Return Value

On successful retrieval of palette information, png_get_PLTE() shall return PNG_INFO_PLTE. Otherwise, png_get_PLTE() shall return 0.