Page 1 of 1

Save 16 bit grayscale PNG

Posted: Tue May 09, 2017 8:35 am
by Xanos
Hello,

the supported formats of the image library are quite limited.
Currently, I plan to work with 16 bit grayscale images and save them as .png file.
Did anybody by any chance already worked with this in Purebasic and can point me in the right direction?
Is this at all possible with the Purebasic image library to work with single-channel images (I don't think so) or do I have to use external libraries?

Thanks in advance.

Re: Save 16 bit grayscale PNG

Posted: Tue May 09, 2017 12:42 pm
by wilbert
The PNG format isn't very complicated.
You can write your own procedure to encode 16 bit grayscale values into PNG format.
The thing is, that it's pretty much useless if all of your image handling doesn't support 16 bit grayscale images.