www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReturnInformationAboutGraphicsFileExample.m

    %% Return Information About Graphics File  
% Find information about the example image, |ngc6543a.jpg|.

%%  
info = imfinfo('ngc6543a.jpg');

%% 
% The |info| structure contains the following information fields:
% |Filename|, |FileModDate|, |FileSize|, |Format|, |FormatVersion|,
% |Width|, |Height|, |BitDepth|, |ColorType|, |FormatSignature|,
% |NumberOfSamples|, |CodingMethod|, |CodingProcess|, and |Comment|.
% 
%%
% To display information from the structure, for example |CodingMethod|, type |info.CodingMethod| in the command window.
%%
info.CodingMethod

%%
% To display all the properties in the structure, type |info| in the
% command window.