📄 bmpwrite.m
字号:
function bmpwrite(X,map, filename);
%BMPWRITE Write a BMP (Microsoft Windows Bitmap) file to disk.
% Note: BMPWRITE has been grandfathered. Use IMWRITE instead.
%
% BMPWRITE(X,MAP,'filename') writes a BMP file containing the
% indexed image X and colormap MAP to a disk file called 'filename'.
% If no file extension is given with the filename, the extension
% '.bmp' is assumed.
%
% See also IMWRITE.
% Mounil Patel 3/10/94
% updated to call IMREAD, Chris Griffin 8/14/96
% Copyright 1993-1998 The MathWorks, Inc. All Rights Reserved.
% $Revision: 5.5 $ $Date: 1997/11/24 15:34:02 $
if (nargin~=3)
error('Requires three arguments.');
end;
if (isstr(filename)~=1)
error('Requires a string filename as the third argument.');
end;
if isa(X,'uint8')
error('BMPWRITE doesn''t support uint8, use IMWRITE instead.');
end
if (isempty(findstr(filename,'.'))==1)
filename=[filename,'.bmp'];
end;
imwrite(X,map,filename,'bmp');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -