문제

Does GIF specify some form of grayscale format that would not require a palette? Normally, when you have a palette, then you can emulate grayscale by setting all palette entries to gray levels. But with other formats (e.g. TIFF) the grayscale palette is implicit and doesn't need to be saved in the file at all; it is assumed that a pixel value of 0 is black and 255 is white.

So is it possible to create such a GIF? I'm using the giflib C library (5.0.5), if that matters.

도움이 되었습니까?

해결책

I forgot about this question. Meanwhile I would out the answer. The GIF format requires a palette. No way around that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top