[cairo] Why 16bit coordinate space.

Øyvind Kolås oeyvindk at hig.no
Mon Jun 26 12:22:53 PDT 2006


* Vladimir Vukicevic <vladimirv at gmail.com> [060626 20:37]:
> On 6/26/06, Paul Giblock <drfaygo at gmail.com> wrote:
> >> Would 6 more bits be enough for your application?
> >22.10 _would_ be enough for my application. 2M is quite an increase
> >from 32K.  I imagine that someone would still run into this problem
> >for very large scrollable areas (ie. web pages).  However, this is
> >where the userlevel hack can be applied by translating the area and
> >then subtracting from the coordinates being drawn.

> As long as there's a limit, you'll always have to write code that does
> the translation anyway, especially if the user can add an arbitrary

Translating is not enough if you've got geometry that is extending into
the "undefined regions". As is the case in
http://cairographics.org/samples/xxx_long_lines.html where the green and
blue lines are not appearing. This could arise when plotting data,
drawing axes from "-inf" to "+inf" and similar.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/


More information about the cairo mailing list