--===============1710137318== Content-Type: multipart/signed; boundary="nextPart7559164.Ma0Kcy4oPD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart7559164.Ma0Kcy4oPD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 21 September 2008, Riccardo Iaconelli wrote: > On Monday 22 September 2008 02:04:04 Robert Knight wrote: > > Fredrik has answered this one on techbase: > > > > http://techbase.kde.org/Development/Tutorials/Graphics/Performance#QPai= nt > >er > > > >::setOpacity.28.29 > > This changes the opacity of the start pixmap, while I want to decrease > opacity just for that single painting operation, keeping the cached pixmap > intact. > > So the two options are: > a) create a copy of the cached pixmap and use the above trick on it. > b) use QPainter::setOpacity() > > Which one is the cheapest? you could always experiment with either valgrind or using QTimer ... but=20 QPainter::setOpacity always defaults to a software path that renders into a= =20 local image, and so is likely to usually be slower. =2D-=20 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 --nextPart7559164.Ma0Kcy4oPD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkjX3vIACgkQ1rcusafx20MkfgCghgDCaUAyRrrUY64NYmbUZKIz KI4An11WPCXMnnbJcA/YTfaa+//66cjZ =vp/z -----END PGP SIGNATURE----- --nextPart7559164.Ma0Kcy4oPD-- --===============1710137318== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============1710137318==--