HeifContextEncodeThumbnail Method

Encodes the image thumbnail.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public void EncodeThumbnail(
	int boundingBoxSize,
	HeifImage thumbnail,
	HeifImageHandle parentImageHandle,
	HeifEncoder encoder,
	HeifEncodingOptions options = null
)

Parameters

boundingBoxSize  Int32
The size of the thumbnail bounding box.
thumbnail  HeifImage
The thumbnail image.
parentImageHandle  HeifImageHandle
The handle of the parent image that this thumbnail should be assigned to.
encoder  HeifEncoder
The encoder.
options  HeifEncodingOptions  (Optional)
The encoder options.

Exceptions

ArgumentNullExceptionthumbnail is null. -or- parentImageHandle is null. -or- encoder is null.
ArgumentOutOfRangeExceptionboundingBoxSize is less than or equal to zero.
HeifExceptionA LibHeif error occurred.
ObjectDisposedExceptionThe object has been disposed.

See Also