HeifImage Constructor

Initializes a new instance of the HeifImage class.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public HeifImage(
	int width,
	int height,
	HeifColorspace colorspace,
	HeifChroma chroma
)

Parameters

width  Int32
The width.
height  Int32
The height.
colorspace  HeifColorspace
The color space.
chroma  HeifChroma
The chroma.

Exceptions

ArgumentOutOfRangeExceptionwidth is less than or equal to zero. -or- height is less than or equal to zero.
HeifException A LibHeif error occurred. -or- The LibHeif version is not supported.

See Also