Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QPainter for paint an image at the double resolution
QtWS25 Last Chance

QPainter for paint an image at the double resolution

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vetryaspa
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vetryaspa
        wrote on last edited by
        #3

        Tanks just try it!!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved