[plt-scheme] When saving a bitmap% to a PNG file, how do you specify the bit depth?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 28 11:29:34 EST 2009

At Tue, 27 Jan 2009 22:33:31 -0600, Grant Rettke wrote:
> When saving a bitmap% to a PNG file, how do you specify the bit depth?
> 
> I need to save an image as an 8-bit PNG.

There's currently no way to specify the depth or type. The output for
color is always RGB[A] with 8 bits per channel. You need palette-based,
8 bits per pixel, right?


Matthew



Posted on the users mailing list.