MatImEncode Method (String, ImageEncodingParam) 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[] ImEncode(
	string ext = ".png",
	params ImageEncodingParam[] prms
)

Parameters

ext (Optional)
Type: SystemString
Encodes an image into a memory buffer.
prms
Type: OpenCvSharpImageEncodingParam
Format-specific parameters.

Return Value

Type: Byte

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

See Also

Reference