QPrinter/KPrinter default resolution
Renchi Raju
renchi at pooh.tam.uiuc.edu
Fri Jan 7 19:20:19 GMT 2005
On Fri, 7 Jan 2005, Lubos Lunak wrote:
> QPrinter/KPrinter default to QPrinter::ScreenResolution as the printer mode,
> and KPrinter's setUsePrinterResolution() defaults to false. This leads to
> using relatively low resolution when printing, which is especially visible
> with images.
>
> I'd like to suggest defaulting to setUsePrinterResolution() being true, and
> printer mode being QPrinter::HighResolution. Alternatively (for KDE4
> only :-/ ), removing the default value for the printer mode, so that the app
> developer must choose and will know about this, and having using printer
> resolution as another argument for ctor, or making it another printer mode.
> This alternative would mean apps for KDE3.4 would have to be checked and
> changed manually, like in http://bugs.kde.org/91644 .
>
> Would there be any reasons to default to such low dpi values like
> QPrinter/KPrinter currently do? I can think of images in image viewers being
> printer smaller with higher dpi, but those usually have adjusting the image
> size anyway. Would this also affect e.g. text editors?
my only misgivings about setting setUsePrinterResolution() to true, is
that some (most) of the inkjet printers come with rather high resolution
and the generated postscript would become rather large in some cases, for
example if you are printing a webpage with big/large-number-of images.
I'm ok with the current setup, except for the lack of documentation in
this regard, which causes many image editing apps to use the defaults and
end up with low quality print outs. We, at digiKam, have been hit by
this problem too and it was only recently resolved. Image-editing apps,
specifically, can easily call setUsePrinterResolution(true) and then
appropriately scale the image using the devicemetrics to get decent
quality printouts.
renchi
More information about the kde-core-devel
mailing list