Table of Contents

Method ImDecodeMulti

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ImDecodeMulti(InputArray, ImreadModes, Range?)

Reads a multi-page image from a buffer in memory.

public static Mat[] ImDecodeMulti(InputArray buf, ImreadModes flags, Range? range = null)

Parameters

buf InputArray

Input array or vector of bytes.

flags ImreadModes

The same flags as in imread

range Range?

A continuous selection of pages. Defaults to all pages.

Returns

Mat[]

A vector of Mat objects holding each page, if more than one. If decoding fails, an empty array is returned.