Image Manipulation

imgsave

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:

PNGThe W3C Portable Network Graphics (PNG) image format.
GIFThe Graphics Interchange Format (GIF) image format.
BMPThe bitmap image format (BMP).
JPG/JPEGThe Joint Photographic Experts Group (JPEG) image format.