Click or drag to resize

Cv2ImWrite Method (String, IEnumerableMat, ImageEncodingParam)

Saves an image to a specified file.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static bool ImWrite(
	string fileName,
	IEnumerable<Mat> img,
	params ImageEncodingParam[] prms
)

Parameters

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

Return Value

Type: Boolean

[Missing <returns> documentation for "M:OpenCvSharp.Cv2.ImWrite(System.String,System.Collections.Generic.IEnumerable{OpenCvSharp.Mat},OpenCvSharp.ImageEncodingParam[])"]

See Also