Cv2ImWrite Method (String, Mat, Int32)
|
Saves an image to a specified file.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static bool ImWrite(
string fileName,
Mat img,
int[] prms = null
)
Public Shared Function ImWrite (
fileName As String,
img As Mat,
Optional prms As Integer() = Nothing
) As Boolean
public:
static bool ImWrite(
String^ fileName,
Mat^ img,
array<int>^ prms = nullptr
)
static member ImWrite :
fileName : string *
img : Mat *
?prms : int[]
(* Defaults:
let _prms = defaultArg prms null
*)
-> bool
OpenCvSharp.Cv2.ImWrite = function(fileName, img, prms);
Parameters
- fileName
- Type: SystemString
Name of the file. - img
- Type: OpenCvSharpMat
Image to be saved. - prms (Optional)
- Type: SystemInt32
Format-specific save parameters encoded as pairs
Return Value
Type:
Boolean
See Also