Click or drag to resize

HeifContextEncodeImageAndReturnHandle Method

Encodes the image and returns the resulting image handle.

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 2.3.0
Syntax
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
ExceptionCondition
ArgumentNullExceptionimage is null. -or- encoder is null.
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.
See Also