Click or drag to resize

MatToBytes 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
public byte[] ToBytes(
	string ext = ".png",
	int[] prms = null
)

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