Name

xs2jpg — send graphics to a JPG file.

Calling Sequence

xs2jpg(win_num, file_name)
xs2jpg(fig, file_name)

Parameters

win_num

integer, id of the figure to export.

fig

handle of the figure to export.

file_name

string, name of the exported file.

Description

xs2jpg exports the display of a graphic window into a JPG file.

Examples

 
scf(0);
plot2d();
//JPG export
xs2jpg(0,'foo.jpg');
xs2jpg(gcf(),'foo.jpg');
 

See Also

xs2bmp, xs2gif, xs2png, xs2ppm, xs2eps, xs2pdf, xs2svg, xs2ps, xs2fig, xs2emf

Authors

S.K