Image Processing Toolbox User's Guide |
Converting Graphics File Formats
To change the graphics format of an image, use imread
to read in the image and then save the. image with imwrite
, specifying the appropriate format.
To illustrate, this example uses the imread
function to read an image in bitmap (BMP) format into the workspace. The example then writes the bitmap image to a file using Portable Network Graphics (PNG) format.
For the specifics of which bit depths are supported for the different graphics formats, and for how to specify the format type when writing an image to file, see the reference entries for imread
and imwrite
.
Querying a Graphics File | Working with DICOM Files |
© 1994-2005 The MathWorks, Inc.