#include <png.h>
void png_set_rgb_to_gray(png_structp png_ptr);
void png_set_rgb_to_gray
png_set_rgb_to_gray() shall set transformations such that the 24-bit RGB image is converted to grayscale.