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. QT Abstraction to render to a RGBA32 in-memory image
Forum Updated to NodeBB v4.3 + New Features

QT Abstraction to render to a RGBA32 in-memory image

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.3k Views 2 Watching
  • 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.
  • T Offline
    T Offline
    theonlylawislove
    wrote on last edited by
    #1

    I have an embedded device that needs to output some propietary pixel data. My vendor has provided me with methods to convert an RGBA32 image, and and set it to a framebuffer.

    If QT can provide me with a RGBA32 representation (alpha channel important) of a window, I can handle the rest (converting RGBA to vendor format to framebuffer), but can QT do this? Any guidance on this?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,
      have a look at QPixmap QScreen::​grabWindow() (http://doc.qt.io/qt-5/qscreen.html#grabWindow).

      T 1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by mcosta
        #3

        HI and welcome to devnet,

        QImage class handle the format you need with QImage::Format_ARGB32; so you can load any images and convert in your format using QImage::convertToFormat()

        Here you can find more information

        Adding something to what @Wieland said I suggest to use QWidget::grab() to get the QPixmap and convert to a QImage

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0
        • ? A Former User

          Hi,
          have a look at QPixmap QScreen::​grabWindow() (http://doc.qt.io/qt-5/qscreen.html#grabWindow).

          T Offline
          T Offline
          theonlylawislove
          wrote on last edited by
          #4

          @Wieland @mcosta Thanks for the guidance. This lead me to the the linuxfb platform integration. It sounds like what I want to do is develop a custom platform for my vendor's hardware. This platform will display one screen, and I will properly flush the frames to the framebuffer in the vendor-specific format.

          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