HeifContext(String) Constructor

Initializes a new instance of the HeifContext class, with the specified file to read from.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public HeifContext(
	string path
)

Parameters

path  String
The file to read from.

Exceptions

ArgumentNullExceptionpath is null.
ArgumentExceptionpath is empty, contains only whitespace or contains invalid characters.
FileNotFoundExceptionThe file specified by path does not exist.
HeifException Unable to create the native HeifContext. -or- The LibHeif version is not supported. -or- A LibHeif error occurred.
IOExceptionAn I/O error occurred.
SecurityExceptionThe caller does not have the required permission.
UnauthorizedAccessException The access requested is not permitted by the operating system for the specified path.

See Also