Saves an image to a file.
Syntax
imgsave(handle, filename [, format])
Remarks
If no format is specified, the format is guessed from the extension of the file, and defaults to PNG.
Valid formats are as follows:
| PNG | The W3C Portable Network Graphics (PNG) image format. |
|---|---|
| GIF | The Graphics Interchange Format (GIF) image format. |
| BMP | The bitmap image format (BMP). |
| JPG/JPEG | The Joint Photographic Experts Group (JPEG) image format. |