[Kde-games-devel] KSVGRenderer::render seems to ignore image size
Aaron J. Seigo
aseigo at kde.org
Thu Jan 31 06:29:55 CET 2008
On Wednesday 30 January 2008, Mauricio Piacentini wrote:
> Andreas Pakulat wrote:
> > I don't quite understand why that happens, the code for the frontsides
> > is essentially the same, except I'm calling KSVGRenderer::render(
> > QPaint*, const QString& id ) instead. And that works fine.
>
> Welcome to the wild world of QtSvgRenderer! Yes, you need to use a
> explicit id, otherwise you get strange results depending on how the rect
> for your document is parsed.
it's not strange at all: it by default sizes to the defined canvas size and
paints the whole thing into the rect you tell it to. so you can insist on the
svg's having the document size set to be equal to the size of the card back,
or else specify the id of the element you want ot render. the latter is
indeed the safest thing to do.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20080130/c9176045/attachment.pgp
More information about the kde-games-devel
mailing list