Re: [racket] Bounding Boxes

2013-08-10 Thread Jens Axel Søgaard
Hi, 2013/8/9 Matthew Flatt > Those bindings do not already exist, as far as I know, but I think > they'd make fine additions to either `dc-path%' or `dc%'. > Okay, I'll see if I can figure it out (soonish). > The implementation of `region%' uses `cairo_clip_extents', so if you'd > like to try

Re: [racket] Bounding Boxes

2013-08-08 Thread Matthew Flatt
Those bindings do not already exist, as far as I know, but I think they'd make fine additions to either `dc-path%' or `dc%'. The implementation of `region%' uses `cairo_clip_extents', so if you'd like to try the change (it will be a while before I could get to it), that might be useful code to loo

[racket] Bounding Boxes

2013-08-05 Thread Jens Axel Søgaard
Hi All, The dc-path% method get-bounding-box computes the bounding box not only for the points on the path, but also for the control points defining the path. This implies that a bounding box can be much larger than the actual path. Cairo supports computation of tighter bounding boxes. Some take