The png_info
structure was removed from png.h
in 1.5.0, and now you should use this pointer with the png_get_*
and png_set_*
functions.
As pointed out in the libpng manual :
The png_info structure is intended to provide information about a PNG file. At one time, png_info fields should have been directly accessible to the user. However, this, as a rule, caused problems with applications using dynamically loaded libraries, and as a result, the set of interface functions for png_info (png_get _ * () and png_set _ * ()), and direct access to the png_info Fields are deprecated.
For instance:
png_uint_32 height; height = png_get_image_height( png_ptr, info_ptr);
source share