octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65187] getframe doesn't capture uiXXX objects


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #65187] getframe doesn't capture uiXXX objects
Date: Wed, 24 Jan 2024 15:15:20 -0500 (EST)

Update of bug#65187 (group octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

I think QScreen::grabWindow won't work because it does what it says : grab
screen pixels. 

Among the several warnings in Qt's doc I see :


The grabWindow() function grabs pixels from the screen, not from the window,
i.e. if there is another window partially or entirely over the one you grab,
you get pixels from the overlying window, too. The mouse cursor is generally
not grabbed.


We want to get a specific window's pixels whether or not this window is at the
front (and not covered by another one). We even want to be able to grab
invisible figure pixels.

I think a way to get widgets drawn is to have them first rendered onto a
suitable pixel based QPaintDevice, using QWidget::render method, capture pixel
values and then let our OpenGL renderer draw those pixels before we recapture
them with the current method.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65187>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]