| MatImEncode Method (String, Int32) | 
        
         
            Encodes an image into a memory buffer.
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic byte[] ImEncode(
	string ext = ".png",
	int[] prms = null
)
Public Function ImEncode ( 
	Optional ext As String = ".png",
	Optional prms As Integer() = Nothing
) As Byte()
public:
array<unsigned char>^ ImEncode(
	String^ ext = L".png", 
	array<int>^ prms = nullptr
)
member ImEncode : 
        ?ext : string * 
        ?prms : int[] 
(* Defaults:
        let _ext = defaultArg ext ".png"
        let _prms = defaultArg prms null
*)
-> byte[] 
function ImEncode(ext, prms);
Parameters
- ext (Optional)
- Type: SystemString
 Encodes an image into a memory buffer.
- prms (Optional)
- Type: SystemInt32
 Format-specific parameters.
Return Value
Type: 
Byte See Also
See Also