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

List:       koffice-devel
Subject:    Re: [PATCH] Limit KoPicture's memory usage
From:       Dirk_Schönberger <dirk.schoenberger () sz-online ! de>
Date:       2002-08-07 11:23:41
[Download RAW message or body]

> This leads to two solutions for EPS handling:
> * is it possible to directly convert EPS to QPicture, using something like
> karbon's EPS importer? After all Qt can render vector graphics already,
all we
> need is to pass it the right data, no?

It would be possible, but I don't think it would look nicely. For instance,
EPS vector graphics
use floating point coordinates instead of the integer coordinates of
QPainter, so would be a loss
of quality. This applies especially for small images like thumbnails. You
can give small numbers like e.g. 0.002
for linewidth, and can make your Postscript interpreter use this
information. It is not possible with teh current
QPainter.
My idea would be a special Painter which uses a Postscript like rendering
model, but I am afraid there are some
opponents to this :)

> * the other possibility is a library containing karbon's core painting
> stuff, and KoPictureEPS would use it, with the EPS importer.
I.e. VPainter (Karbons paint device) using libart for rendering on demand.

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