[racket] freeze and bounding boxes

From: Stephen Bloch (bloch at adelphi.edu)
Date: Wed Jan 18 19:58:02 EST 2012

On Jan 18, 2012, at 6:22 PM, David Van Horn wrote:

> On 1/18/12 6:04 PM, Robby Findler wrote:
>> Yes, that's the right behavior. See the end of the 2htdp/image docs
>> about pixels and whatnot.
> OK, it seems at odds with the note that freeze can "improve performance without changing how the image draws," but I get that a square draws larger than its bounding box so it gets cropped when frozen (or saved to a file).

Yes, we've been discussing this for YEARS.  It bothers me too: freeze really should have no visible effect except on performance.  The only way I know of to implement that is for the bitmap to actually store more than width*height pixels.

Stephen Bloch
sbloch at adelphi.edu

Posted on the users mailing list.