HeifImageHandleAddRegion Method

Adds a region to the image handle.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public HeifRegionItem AddRegion(
	long referenceWidth,
	long referenceHeight
)

Parameters

referenceWidth  Int64
The reference width.
referenceHeight  Int64
The reference height.

Return Value

HeifRegionItem
The region item.

Exceptions

ArgumentOutOfRangeExceptionreferenceWidth must be in the range of [0, 4294967295]. -or- referenceHeight must be in the range of [0, 4294967295].
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.

See Also