[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52866] print() function doesn't accept '-RGBI
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #52866] print() function doesn't accept '-RGBImage' option |
Date: |
Sun, 14 Jan 2018 04:49:54 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #2, bug #52866 (project octave):
This could be implemented in two ways:
* use a print command to produce a PNG temporary file and use imread to get
the pixel data (slow, works for both gnuplot and opengl)
* prepare the figure for printing and use "getframe" instead of
__opengl_print__ (fast, opengl only). In order to honor the resolution we can
probably use interp2 afterwards.
What do those commands return in Matlab:
plot (1:10);
grid on
text (5, 5, "TEXT", 'fontsize', 20)
a = print ('-RGBImage', '-r200')
size (a)
class (a)
imwrite a r200.png
a = print ('-RGBImage', '-r400')
size (a)
class (a)
imwrite a r400.png
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52866>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/