fig2img

版本 1.0.1 (3.7 KB) 作者: Toby
.fig to image conversion
27.0 次下载
更新时间 2019/11/14

查看许可证

% Converts all .fig files in input directory to specified output image type.
% Ouptuts are generated in the same directory as the source .fig files.
% Image file names match those of the converted .fig files.
%
% Syntax:
% fig2img
% fig2img(figDir)
%
% Where:
% figDir (optional) - directory (or cell array of directories) containing .fig files to be converted;
% defaults to current directory
%
% Additional input parameters are available:
% 'dimensions' - desired pixel dimensions ([width,height]) of exported image(s); defaults to [1200,900]
% 'resolution' - desired resulution (dpi) of exported image(s); defaults to 150
% 'format' - desired image format to be used with the print() function; defaults to '-dpng'
% 'overwrite' - logical flag to overwrite existing image file(s) if they already exist; defaults to false
% 'parallel' - logical flag to attempt to use distributed computing toolbox;
% useful for large (size or quantity) .fig files; defaults to false
% 'recursive' - logical flag to execute recursively through the input directories; defaults to false
% 'verbose' - logical flag to print status to command window; defaults to true
%
% These parameters are set by:
% fig2img(figDir,'parameter',value,...)
%

引用格式

Toby (2024). fig2img (https://www.mathworks.com/matlabcentral/fileexchange/73353-fig2img), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Printing and Saving 的更多信息
致谢

参考作品: Exportfig, fig2img, export_fig

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added description.

1.0.0