Programming Previous page   Next Page

Getting Information About Graphics Files

If you have a file in a standard graphics format, use the imfinfo function to get information about its contents. The imfinfo function returns a structure containing information about the file. The fields in the structure vary with the file format but imfinfo always returns some basic information including filename, last modification date, file size, and format.

This example returns information about a file in Joint Photographic Experts Group (JPEG) format:


Previous page  Working with Graphics Files Importing Graphics Data Next page

© 1994-2005 The MathWorks, Inc.