HeifRegionItemAddInlineMask(HeifImage, 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(
	HeifImage image,
	int x,
	int y,
	long width,
	long height
)

Parameters

image  HeifImage
The mask image.
x  Int32
The x coordinate.
y  Int32
The y coordinate.
width  Int64
The width.
height  Int64
The height.

Exceptions

ArgumentNullExceptionimage is .
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.
OutOfMemoryException Insufficient memory to create the inline mask data array.

See Also