png_get_image_width

Name

png_get_image_width -- return image width

Synopsis

#include <png.h>

png_uint_32 png_get_image_width(png_structp png_ptr, png_infop info_ptr);

Description

png_get_image_width() returns the image width in pixels.

Return Value

Returns 0 if png_ptr or info_ptr is NULL, image_width otherwise.