# Command Source_SaveImage

## Using of command

This command is use for save picture to picture file. Command use OpenCv function cvSaveImage.Selected picture will be save to picture file.
Following file formats are suported:

1. Windows bitmaps - BMP, DIB
2. JPEG files - JPEG, JPG, JPE
3. Portable Network Graphics - PNG
4. Portable image format - PBM, PGM, PPM
5. Sun rasters - SR, RAS
6. TIFF files - TIFF, TIF
7. OpenEXR HDR images - EXR
8. JPEG 2000 images - jp2

## Commands parameters

Function has 2 parameters:

1. Source picture:You can select one of used picture from where picture will be saved.You can select Picture_0 to Picture_19.
2. Path to picture file: This parameter sets path and file name for picture file which will be saved.Click on this parameter line open Save file dialog, where user can select picture file. Type of picture file depends on file extension, so extension must be one of suported format.

## Error codes

1. Error code -11:Bad picture position. This error means error in first parameter. Picture is not in range Picture_0 to Picture_19.
2. Error code -100:OpenCV error: This error is error inside OpenCv function cvSaveImage. Error decription is display in result window. Reason for this error can be bad picture extension,bad path, picture can not be save in selected directory (Check write permision for selected directory)