Table of Contents

Method ImEncodeMulti

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ImEncodeMulti(string, IEnumerable<Mat>, out byte[], int[]?)

Encodes array of images into a memory buffer.

public static bool ImEncodeMulti(string ext, IEnumerable<Mat> imgs, out byte[] buf, int[]? prms = null)

Parameters

ext string

The file extension that defines the output format

imgs IEnumerable<Mat>

The images to be written

buf byte[]

Output buffer resized to fit the compressed data.

prms int[]

Format-specific parameters.

Returns

bool