HeifContextEncodeImageAndReturnHandle Method

Encodes the image and returns the resulting image handle.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public HeifImageHandle EncodeImageAndReturnHandle(
	HeifImage image,
	HeifEncoder encoder,
	HeifEncodingOptions options = null
)

Parameters

image  HeifImage
The image.
encoder  HeifEncoder
The encoder.
options  HeifEncodingOptions  (Optional)
The encoder options.

Return Value

HeifImageHandle
The image handle.

Exceptions

ArgumentNullExceptionimage is null. -or- encoder is null.
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.

See Also