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

Add support full support for 30bit color (10bit per RGB color)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.12.0
    • 5.7.0 Alpha
    • GUI: Painting
    • None

      Currently 10-bit per color channels images can be rendered to and from, but internally the raster engine will still use 8-bit per color channel and only the OpenGL paint engine is able to render in full precision if supported by the OpenGL driver.

      This suggestion is about adding support also for raster engine and for all the related classes e.g. QColor etc.

      Example code snippets that should be able to use 10bit colors:

      editorPatchColor = QColor();
      QPalette palette;
      palette.setColor(this->backgroundRole(), editorPatchColor);
      this->setPalette(palette);
      (…)
      
      or
      setEditorPatchColor(QColor newColor) {
      (…)
      editorPatch->setStyleSheet(QString::fromUtf8("background-color: rgb(%1,%2,
      %3);").arg((short)newColor.red()).arg((short)newColor.green()).arg((short)newColor.blue()));
      (…)
      

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

            allan.jensen Allan Sandfeld Jensen
            kileppal Kimmo Leppälä
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes