[plt-scheme] bitmap pickles

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Aug 25 16:54:09 EDT 2006

At Fri, 25 Aug 2006 10:06:04 -0400, David Richards wrote:
> Examining the contents of saved definitions into which I had pasted an 
> image, I see that the image is stored in some kind of ASCII-ized PNG 
> form, which is significantly more efficient than storing the pixels 
> obtained from get-argb-pixels.
> How is this done, and how can I use this technique in my programs?

An image snip writes its image to a temporary PNG file, and then it
copies the file content.

(Eventually, I'll make bitmap saving write to a port instead of only to
files. The change is more tedious than it sounds, though.)


Posted on the users mailing list.