F
floobles
Hi, I'm trying to obtain the number of colors and possibly the color
table of png files. However, most of my files are RGB (not palette)
mode. Does anyone know how to obtain those info?
I am using the png.h library. I have tried using the png_set_dither
function to convert the rgb mode to palette mode, but did not succeed.
(I would prefer to be able to directly get the info from RGB mode
though.)
Thanks, much appreciated.
table of png files. However, most of my files are RGB (not palette)
mode. Does anyone know how to obtain those info?
I am using the png.h library. I have tried using the png_set_dither
function to convert the rgb mode to palette mode, but did not succeed.
(I would prefer to be able to directly get the info from RGB mode
though.)
Thanks, much appreciated.