[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48195] missing getframe function in gnuplot
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #48195] missing getframe function in gnuplot |
Date: |
Tue, 30 May 2017 14:06:50 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
Follow-up Comment #29, bug #48195 (project octave):
Just FTR, on Windows 7 64bit with a recently self-built mxe installer (64-bit)
I get:
>> test getframe
Mesa warning: couldn't open dxtn.dll, software DXTn compression/decompression
unavailable
warning: opengl_renderer: Error 'invalid operation' (1282) occurred in
init_gl_context
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing
'figure' object
Mesa warning: couldn't open dxtn.dll, software DXTn compression/decompression
unavailable
warning: opengl_renderer: Error 'invalid operation' (1282) occurred in
init_gl_context
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing
'text' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing
'patch' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing
'axes' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing
'figure' object
***** testif HAVE_OSMESA
hf = figure ("visible", "off");
unwind_protect
hax = axes ("visible", "off", "position", [0 0 1 1]);
verts = [0 0; .5 0; 1 0; ...
0 .5; .5 .5; 1 .5; ...
0 1; .5 1; 1 1];
faces = [1 2 5 4; 2 3 6 5; 4 5 8 7; 5 6 9 8];
fvc = [1 0 0; 0 1 0; 0 0 1; 1 0 1];
patch ("vertices", verts, "faces", faces, "facevertexcdata", fvc, ...
"facecolor", "flat");
kk = 1;
pos = get (hf, "position");
for jj = [0.05 0.55]
for ii = [0.05 0.55]
rect = [ii jj .4 .4].*[pos(3:4) pos(3:4)];
im = getframe (hax, rect).cdata;
assert (im(:,:,1) == fvc(kk,1)*255)
assert (im(:,:,2) == fvc(kk,2)*255)
assert (im(:,:,3) == fvc(kk,3)*255)
kk++;
endfor
endfor
unwind_protect_cleanup
close (hf)
end_unwind_protect
!!!!! test failed
assert (im (:, :, 1) == fvc (kk, 1) * 255) failed
>>
Perhaps also the condition "if (! ispc) ..." could be added?
However, getframe works beautifully, I'm very glad you've implemented it
Pantxo! Thanks very much!
_______________________________________________________
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, Pantxo Diribarne, 2017/05/18
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2017/05/18
- [Octave-bug-tracker] [bug #48195] missing getframe function, Guillaume, 2017/05/18
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2017/05/24
- [Octave-bug-tracker] [bug #48195] missing getframe function, Avinoam Kalma, 2017/05/24
- [Octave-bug-tracker] [bug #48195] missing getframe function, Pantxo Diribarne, 2017/05/24
- [Octave-bug-tracker] [bug #48195] missing getframe function, Avinoam Kalma, 2017/05/26
- [Octave-bug-tracker] [bug #48195] missing getframe function in gnuplot, Pantxo Diribarne, 2017/05/28
- [Octave-bug-tracker] [bug #48195] missing getframe function in gnuplot,
Philip Nienhuis <=