Saves the image to the specified file. The image format is chosen depending on the filename extension, see cvLoadImage.
Only 8-bit single-channel or 3-channel (with 'BGR' channel order) images can be saved using this function.
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int SaveImage( string fileName, CvArr image, params ImageEncodingParam[] prms )
Parameters
- fileName
- Type: SystemString
Name of the file. - image
- Type: OpenCvSharpCvArr
Image to be saved. - prms
- Type: OpenCvSharpImageEncodingParam
[Missing <param name="prms"/> documentation for "M:OpenCvSharp.Cv.SaveImage(System.String,OpenCvSharp.CvArr,OpenCvSharp.ImageEncodingParam[])"]
Return Value
Type: Int32[Missing <returns> documentation for "M:OpenCvSharp.Cv.SaveImage(System.String,OpenCvSharp.CvArr,OpenCvSharp.ImageEncodingParam[])"]
See Also