| Image Processing Toolbox | ![]() |
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.
| Converting Image Storage Classes | Reading and Writing DICOM Files | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |