Click or drag to resize

Cv2ImWrite Method (String, Mat, ImageEncodingParam)

Saves an image to a specified file.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static bool ImWrite(
	string fileName,
	Mat img,
	params ImageEncodingParam[] prms
)

Parameters

fileName
Type: SystemString
Name of the file.
img
Type: OpenCvSharpMat
Image to be saved.
prms
Type: OpenCvSharpImageEncodingParam
Format-specific save parameters encoded as pairs

Return Value

Type: Boolean
See Also