png_set_packing

Name

png_set_packing -- expand image to 1 pixel per byte for bit-depths 1,2 and 4

Synopsis

#include <png.h>

void png_set_packing(png_structp png_ptr);

Description

png_set_packing() shall expand image to 1 pixel per byte for bit-depths 1, 2 and 4 without changing the order of the pixels. If png_set_packing() is not called, PNG files pack pixels of bit_depths 1, 2 and 4 into bytes as small as possible, for example, 8 pixels per byte for 1-bit files.