QPainter for paint an image at the double resolution



  • Hi all,

    I have to paint and Imege doubling the resolution of image, I have ever Use the standard method to paint :

    @ QImage *rQP = new QImage(QSize(35,29),QImage::Format_ARGB32_Premultiplied);
    QString fileNameRQP;
    fileNameRQP.append(":/new/lista/Grafiche/LegendSmall/rapporto_medio_small.png");
    rQP->load(fileNameRQP);
    p.drawImage(QPoint(240,y+76) ,*rQP);@

    is possible paint this image with double resolution?



  • You mean you want to scale the image? Why not use QImage::scaled then?



  • Tanks just try it!!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.