HeifContext(ReadOnlyMemoryByte) Constructor

Initializes a new instance of the HeifContext class, with the specified memory to read from.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public HeifContext(
	ReadOnlyMemory<byte> bytes
)

Parameters

bytes  ReadOnlyMemoryByte
A sequence of bytes that contains the HEIF image.

Exceptions

ArgumentExceptionbytes is empty.
HeifException Unable to create the native HeifContext. -or- The LibHeif version is not supported. -or- A LibHeif error occurred.

See Also