HeifContextSetMaximumImageSizeLimit Method

Sets the maximum image size limit.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public void SetMaximumImageSizeLimit(
	int maxImageSizeLimit
)

Parameters

maxImageSizeLimit  Int32
The maximum image size limit.

Remarks

This method allows callers to limit the maximum image width/height that LibHeif can load. The value will replace the default limit that LibHeif uses when loading images in this instance.

Exceptions

ArgumentOutOfRangeExceptionmaxImageSizeLimit is less than or equal to zero.
ObjectDisposedExceptionThe object has been disposed.

See Also