Stream figure as byte array encoded in specified format
creates
a signed byte array with the PNG data for the current figure. The
size and position of the printed output depends on the figure's output
= figToImStreamPaperPosition[mode]
properties.
creates a byte array
with the image data for the specified figure. You can specify the
encoding format for the image and if the byte array is signed or unsigned.
The size and position of the printed output depends on the figure's output
= figToImStream
(Name,Value
)PaperPosition[mode]
properties.
surf(peaks) bytes = figToImStream
f = figure; surf(peaks); bytes = figToImStream('figHandle',f,... 'imageFormat','bmp',... 'outputType','uint8');