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

Allow to specify default dpi for images

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • None
    • Image formats
    • None

    Description

      When QImage is loaded from image file which doesn't have dpi specified, default dpi (qt_defaultDpi()) is used for the image. It would be nice to allow to specify default dpi for images, as it sometimes may be necessary to specify other default dpi.

      For example, I work on xps renderer. Xps specification requires that images without dpi specified use 96dpi.

      Currently I use workaround - load image, set its dpi and load it again. When image file doesn't have dpi specified, then dpi set by me stays unchanged.

      Attachments

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

        Activity

          People

            bdo Jo Asplin (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes