[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48195] missing getframe function
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #48195] missing getframe function |
Date: |
Fri, 10 Jun 2016 14:02:28 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
URL:
<http://savannah.gnu.org/bugs/?48195>
Summary: missing getframe function
Project: GNU Octave
Submitted by: gyom
Submitted on: Fri 10 Jun 2016 02:02:25 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
I am trying to implement the missing getframe functionality:
http://www.mathworks.com/help/matlab/ref/getframe.html
I am able to capture the screen using java:
width = 256;
height = 128;
img = javaMethod ('createScreenCapture',...
javaObject ('java.awt.Robot'),...
javaObject ('java.awt.Rectangle', 0, 0, width, height));
img = typecast (javaMethod ('getRGB', img, 0, 0, width, height, [], 0, width),
'uint8');
img = reshape (img, 4, width, height);
img = cat (3, squeeze (img(3,:,:))', squeeze (img(2,:,:))', squeeze
(img(1,:,:))');
figure, imagesc (img)
but I wonder whether it would be possible, at least for Qt, to have a wrapper
around QScreen::grabWindow to work even in the absence of the Java runtime:
http://doc.qt.io/qt-5/qscreen.html#grabWindow
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48195>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48195] missing getframe function,
Guillaume <=
- [Octave-bug-tracker] [bug #48195] missing getframe function, Rik, 2016/06/10
- [Octave-bug-tracker] [bug #48195] missing getframe function, Mike Miller, 2016/06/10
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2016/06/13
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Guillaume, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Philip Nienhuis, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Philip Nienhuis, 2016/06/14
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2016/06/14