TakeAPicture

버전 1.0.0.0 (2.81 KB) 작성자: Peter O'Connor
Take a snapshot of the current figure, save it as a png (or tiff or whatever) image
다운로드 수: 449
업데이트 날짜: 2011/4/18

라이선스 보기

Example Usage

>>ezplot(@(t)max(30*365*24-t,0),[0 33*365*24]);
>> xlabel 'age (hours)', ylabel 'what remains of your youth (hours)';
>>TakeAPicture -report

Documentation:
% Create and save a png picture from your figure.
%
% e.g.
% TakeAPicture % Take a picture
% TakeAPicture -inv % Take a picture and invert the colors
% TakeAPicture -auto % Use a default name and directory
% TakeAPicture('name','aaa','manualcrop',false) % Specify the name and don't crop
% TakeAPicture('-withfig','name','aaa') % Also save the .fig file and specify the name
% TakeAPicture('-withfig','colors','inv') % Also save the .fig file and invert colors
%
% Settings (enter as property-value pairs)
% 'name' : Name of picture (default: <timestamp>)
% 'destination' : Save location (default: cd)
% 'figure' : Figure handle (default: gcf)
% 'invert' : whether to invert (default: false)
% 'figsave' : whether to also save the figure (default: false)
% 'uidir' : whether to use user-selected directory (default: true)
% 'manualcrop' : whether to manually crop the image (default: true)
% 'hidecontrols': whether to hide ui controls (default: false)
% 'colors' : how to modify colors. Make a cell array to do multiple
% operations. Options are:
% 'inv' : invert colors
% 'grey' : sets colors to greyscale
% 'bw' : black and white
% 'decolor' : greys out the extreme colors.
% 'normal' : does nothing
%
% Enjoy
% -Peter

인용 양식

Peter O'Connor (2024). TakeAPicture (https://www.mathworks.com/matlabcentral/fileexchange/31091-takeapicture), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0