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. If the format, depth or channel order is different, use cvCvtScale and cvCvtColor to convert it before saving, or use universal cvSave to save the image to XML or YAML format

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: (


public static bool cvSaveImage(
	string filename,
	IntPtr image,
	IntPtr parameters
Visual Basic
Public Shared Function cvSaveImage ( _
	filename As String, _
	image As IntPtr, _
	parameters As IntPtr _
) As Boolean
Visual C++
static bool cvSaveImage(
	String^ filename, 
	IntPtr image, 
	IntPtr parameters


Type: System..::..String
The name of the file to be saved to
Type: System..::..IntPtr
The image to be saved
Type: System..::..IntPtr
The parameters

Return Value

[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.cvSaveImage(System.String,System.IntPtr,System.IntPtr)"]

See Also