[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Resizing an image with QPixmap::resize()
From: mh <crapsite () gmx ! net>
Date: 2001-02-24 6:14:55
[Download RAW message or body]
Jono Bacon, Sam, 24 Feb 2001:
> Hello all,
>
> I am trying to resize an image using QPixmap::resize(), but all it seems to
> do is to chop the image instead of actually scaling it. I looked at KPixmap,
> but it does not appear to have any soloution to this problem.
>
> Can anyone help me with this?
E.g.:
QPixmap pm1("/bla/bla.gif");
QWMatrix m;
m.scale(0.5,0.5);//half the width/height
pm1 = pm1.xForm(m);
If quality is more important than speed, convert to a QImage and use
QImage::smoothScale().
Michael
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic