Click or drag to resize

HeifContext Class

The LibHeif context.
Inheritance Hierarchy

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 2.3.0
Syntax
public sealed class HeifContext : Disposable

The HeifContext type exposes the following members.

Constructors
 NameDescription
Public methodHeifContext Initializes a new instance of the HeifContext class.
Public methodHeifContext(Byte) Initializes a new instance of the HeifContext class, with the specified byte array to read from.
Public methodHeifContext(String) Initializes a new instance of the HeifContext class, with the specified file to read from.
Public methodHeifContext(Stream, Boolean) Initializes a new instance of the HeifContext class with the specified stream to read from, and optionally leaves the stream open.
Top
Methods
 NameDescription
Public methodAddExifMetadata Adds EXIF meta-data to the image.
Public methodAddGenericMetadata(HeifImageHandle, String, Byte) Adds generic meta-data to the image.
Public methodAddGenericMetadata(HeifImageHandle, String, String, Byte) Adds generic meta-data to the image.
Public methodAddXmpMetadata Adds XMP meta-data to the image.
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable)
Public methodEncodeImage Encodes the image.
Public methodEncodeImageAndReturnHandle Encodes the image and returns the resulting image handle.
Public methodEncodeThumbnail Encodes the image thumbnail.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetEncoder(HeifCompressionFormat) Gets the default encoder for the specified compression format.
Public methodGetEncoder(HeifEncoderDescriptor) Gets the encoder associated with the specified encoder descriptor.
Public methodGetEncoderDescriptors Gets a list of the encoder descriptors.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetImageHandle Gets the image handle for the specified image id.
Public methodGetPrimaryImageHandle Gets the image handle for the primary image.
Public methodGetTopLevelImageIds Gets a list of the top-level image ids.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodSetMaximumImageSizeLimit Sets the maximum image size limit.
Public methodSetPrimaryImage Sets the primary image.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteToFile Writes this instance to the specified file.
Public methodWriteToStream Writes this instance to the specified stream.
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also