MatToBytes Method (String, Int32) OpenCvSharp Class Library
Encodes an image into a memory buffer.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
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

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Mat.ToBytes(System.String,System.Int32[])"]

See Also

Reference