HeifRegionItemAddInlineMask(ReadOnlySpanByte, Int32, Int32, Int64, Int64) Method

Adds an inline mask to the region geometry.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public void AddInlineMask(
	ReadOnlySpan<byte> maskData,
	int x,
	int y,
	long width,
	long height
)

Parameters

maskData  ReadOnlySpanByte
The mask data.
x  Int32
The x coordinate.
y  Int32
The y coordinate.
width  Int64
The width.
height  Int64
The height.

Exceptions

ArgumentExceptionmaskData is empty.
ArgumentOutOfRangeExceptionx must be greater than or equal to 0. -or- y must be greater than or equal to 0. -or- width must be in the range of [0, 4294967295]. -or- height must be in the range of [0, 4294967295].
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.

See Also