| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Builder NE |
| Contents | Index |
| Learn more about MATLAB Builder NE |
output type =
figToImStream ('fighandle', figure_handle,
'imageFormat', image_format, 'outputType', output_type)
The output type = figToImStream ('fighandle', figure_handle, 'imageFormat', image_format, 'outputType', output_type) command also accepts user-defined variables for any of the input arguments, passed as a comma-separated list
The size and position of the printed output depends on the figure's PaperPosition[mode] properties.
figToImStream('figHandle', Figure_Handle, ...) allows you to specify the figure output to be used. The Default is the current image
figToImStream('imageFormat', [png|jpg|bmp|gif]) allows you to specify the converted image format. Default value is png.
figToImStream('outputType', [int8!uint8]) allows you to specify an output byte data type. uint8 (unsigned byte) is used primarily for .NET primitive byte. Default value is uint8.
Convert the current figure to a signed png byte array:
surf(peaks)
bytes = figToImStream
Convert a specific figure to an unsigned bmp byte array:
f = figure;
surf(peaks);
bytes = figToImStream( 'figHandle', f, ...
'imageFormat', 'bmp', ...
'outputType', 'uint8' );
![]() | deploytool | mcc | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |