jsmith
30th October 2009, 11:16
Hi,
I have a Jpeg image of 2500*2500. But i have a QWidget to dispaly map is of 1040*740 size. When i scaled down that pixmap to 1040*740 using (QPixmap::scaled(QSize(geometry().width(),geometry ().height()),Qt::KeepAspectRatio)) and drawn using
painter.drawPixmap(0,0,geometry().width(),geometry ().height(),pixmap)
i am able to do zoom in , pan and other functionalities like drawing painter paths with mouse move , drag and drop labels very smoothly.
But here problem is i am lossing resolution of that pixmap.
If i display that pixmap without scaling, i am not lossing the resolution. But remaining functionaliteies get affected. Zoom/Pan , drawing paths with mouse are not working smoothly.
Please help me the solution to this problem so that i'll be thankful to you.
It is very urgent please.
I have a Jpeg image of 2500*2500. But i have a QWidget to dispaly map is of 1040*740 size. When i scaled down that pixmap to 1040*740 using (QPixmap::scaled(QSize(geometry().width(),geometry ().height()),Qt::KeepAspectRatio)) and drawn using
painter.drawPixmap(0,0,geometry().width(),geometry ().height(),pixmap)
i am able to do zoom in , pan and other functionalities like drawing painter paths with mouse move , drag and drop labels very smoothly.
But here problem is i am lossing resolution of that pixmap.
If i display that pixmap without scaling, i am not lossing the resolution. But remaining functionaliteies get affected. Zoom/Pan , drawing paths with mouse are not working smoothly.
Please help me the solution to this problem so that i'll be thankful to you.
It is very urgent please.