figToImStream
Stream figure as byte array encoded in specified format
Description
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.
Examples
Convert current figure to a signed PNG formatted byte array
surf(peaks) bytes = figToImStream
Convert a specific figure to a PNG stored in an unsigned byte array
f = figure; surf(peaks); bytes = figToImStream('figHandle',f,... 'imageFormat','bmp',... 'outputType','uint8');
Input Arguments
Output Arguments
Version History
Introduced in R2009b