png_set_compression_method

Name

png_set_compression_method -- set PNG compression algorithm

Synopsis

#include <png.h>

void png_set_compression_method(png_structp png_ptr, int method);

Description

This interface shall set the PNG compression algorithm to use.

The parameter png_ptr shall specify the PNG file to compress.

The parameter method corresponds directly to the method parameter of the libz deflateInit2_() interface. An LSB-conforming implementation shall support the Z_DEFLATED method, and may support other implementation defined methods.