HeifContextAddGenericMetadata(HeifImageHandle, String, ReadOnlySpanByte) Method

Adds generic meta-data to the image.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public void AddGenericMetadata(
	HeifImageHandle imageHandle,
	string type,
	ReadOnlySpan<byte> data
)

Parameters

imageHandle  HeifImageHandle
The image handle.
type  String
The meta-data type.
data  ReadOnlySpanByte
The generic meta-data.

Exceptions

ArgumentNullExceptionimageHandle is null. -or- type is null.
ArgumentExceptiontype is empty or contains only whitespace characters. -or- data is empty.
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.

See Also