Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51727

HighDPI support for QImage

    XMLWordPrintable

Details

    Description

      QImage should have a convenience method which returns the device independent size, which is calculated by using the setDevicePixelRatio

      QImage image(…, QSize(256, 256));
      image.setDevicePixelRatio(2);
      image.height(); //                  => 256
      image.deviceIndependentHeight();// => 128 (new API)
      

      QImage also should have a constructor in which it is possible to set the device pixel ratio:

      QImage(int widthDip, int heightDip, qreal dpr, Format format)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes