[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Using the KOffice API's in new projects
From:       Dirk_Schönberger <dirk.schoenberger () sz-online ! de>
Date:       2003-05-29 10:05:29
[Download RAW message or body]

> > QCanvas use integer coordinates, that's definitely not precise enough
for
> > an office suite application.

> How is that not precise enough?  There's only a finite (integer) number of
> pixcels on a screen.

> Jeff

You want to work with documents, which are about to be printed.
There exist a thing called density, i.e. how many distinct pixel can be used
to describe a area.
The density of a screen is something like 70-100 dots per inch, while for
printing you have a much higher density, something like 300, 600, 1200 dots
per inch.
In order to get similar results for screen and print, you cannot work with
pixels, but you have to use device independent coordinates, i.e. coordinates
which can easily calculated to the target density.
If you use integer coordinates, you will get some calculation and rounding
errors, so it is better to use floating point coordinates.

Regards
Dirk



_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic