[Qt-interest] Problem with Image scaling

Sai Chandra Sai.Chandra at lntinfotech.com
Thu May 21 05:39:19 CEST 2009


hi my code this way.......
                QPainter ptr(&imge);
                QMatrix matrix;
                matrix.translate(50.0,250.0);
                matrix.rotate(0);
                matrix.shear(0,0);
                matrix.scale(1.25, 3);
                float factor = 1.25;
                ptr.setMatrix(matrix);
                ptr.restore();
                ptr.drawImage(QRectF(0, 0, -1, -1),imge);

now after translating the image i get a new scaled image which is what i 
want. But the problem is when i am drawing an image like this.. old image 
is still visible and the new scaled image is getting displayed below the 
old image. What I want is i must get the new scaled image in the place of 
old image.. just like scaled image overwriting the old image. What else 
should I write for that??

Thank You

 Regards,

Sai Chandra G.V,
PES,
L&T Infotech Ltd,
Plot No 25-31,EPIP Phase II,
KIADB Industrial Area,Whitefield,
BANGALORE-66,INDIA
Mobile:+91 9900200782
Office: 080-66242639


Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as: 

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech 
Internal Use Only   L&T Infotech General Business 

This Email may contain confidential or privileged information for the 
intended recipient (s) If you are not the intended recipient, please do 
not use or disseminate the information, notify the sender and delete it 
from your system. 

______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090521/93a00a8f/attachment.html 


More information about the Qt-interest-old mailing list