| Cv2ImWrite Method (String, Mat, 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,
Mat img,
params ImageEncodingParam[] prms
)
Public Shared Function ImWrite (
fileName As String,
img As Mat,
ParamArray prms As ImageEncodingParam()
) As Boolean
public:
static bool ImWrite(
String^ fileName,
Mat^ img,
... array<ImageEncodingParam^>^ prms
)
static member ImWrite :
fileName : string *
img : Mat *
prms : ImageEncodingParam[] -> bool
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[Missing <returns> documentation for "M:OpenCvSharp.Cv2.ImWrite(System.String,OpenCvSharp.Mat,OpenCvSharp.ImageEncodingParam[])"]
See Also