Cv2ImEncode Method (String, InputArray, Byte, ImageEncodingParam) OpenCvSharp Class Library
Compresses the image and stores it in the memory buffer

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void ImEncode(
	string ext,
	InputArray img,
	out byte[] buf,
	params ImageEncodingParam[] prms
)

Parameters

ext
Type: SystemString
The file extension that defines the output format
img
Type: OpenCvSharp.CPlusPlusInputArray
The image to be written
buf
Type: SystemByte

[Missing <param name="buf"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.ImEncode(System.String,OpenCvSharp.CPlusPlus.InputArray,System.Byte[]@,OpenCvSharp.ImageEncodingParam[])"]

prms
Type: OpenCvSharpImageEncodingParam

[Missing <param name="prms"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.ImEncode(System.String,OpenCvSharp.CPlusPlus.InputArray,System.Byte[]@,OpenCvSharp.ImageEncodingParam[])"]

See Also

Reference