Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
print2array.m File Reference

PRINT2ARRAY Exports a figure to an image array. More...

Functions

function [ A , bcol ] = print2array (fig, res, renderer, gs_options)
 PRINT2ARRAY Exports a figure to an image array.
 
function fp = print2array>font_path ()
 

Detailed Description

PRINT2ARRAY Exports a figure to an image array.

Function Documentation

◆ print2array>font_path()

function fp = print2array>font_path ( )

◆ print2array()

function [ A , bcol ] = print2array ( fig,
res,
renderer,
gs_options )

PRINT2ARRAY Exports a figure to an image array.

Examples
A = print2array A = print2array(figure_handle) A = print2array(figure_handle, resolution) A = print2array(figure_handle, resolution, renderer) A = print2array(figure_handle, resolution, renderer, gs_options) [A bcol] = print2array(...)

This function outputs a bitmap image of the given figure, at the desired resolution.

If renderer is -painters then ghostcript needs to be installed. This can be downloaded from: http://www.ghostscript.com

IN
figure_handle - The handle of the figure to be exported. Default: gcf. resolution - Resolution of the output, as a factor of screen resolution. Default: 1. renderer - string containing the renderer paramater to be passed to print. Default: -opengl. gs_options - optional ghostscript options (e.g.: -dNoOutputFonts). If multiple options are needed, enclose in call array: {-a,-b}
OUT
A - MxNx3 uint8 image of the figure. bcol - 1x3 uint8 vector of the background color

References A(), min, and using_hg2().

Referenced by export_fig().

Here is the call graph for this function:
Here is the caller graph for this function: