Le 01/08/2019 à 21:50, Samuel Gougeon a écrit :
// Generate a GUI (from demos)exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1);f=findobj("figure_id",100001);f.figure_position([12])=[00];// Imposes the GUI position on the screenf.visible="on";// Brings the GUI window on the fronts=f.figure_size;filename="capture_$U(Y-%m-%d %H%M%S).png";// with a timestamp in the file namefilename="capture.png";// simple fixed file nameiview_path=findfileassociation(".png");// or replace with the fixed known path// to IrfanView .exe on your computercmd="%s /capture=7=(0,0,%d,%d) /convert=%s";cmd=msprintf(cmd,iview_path,s(1),s(2),filename);status=host(cmd);winopen(filename);
Other Irfanview command-line options exist and can be included in the command string, to print the capture even without saving it in any file, namely: /aspectratio /resize_long=size /resize_short=size /rotate_r /rotate_l /print etc
The irfanview help is extensive and very clear, with many examples.
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
