Basically, I would like to convert the bitmap to png using libpng, and not output it to FILE *. I would like to output it to char *. I already saw this linked post, but I donβt see where the raster data is actually used. Any help would be appreciated.
source
share