Table of Contents

Class FastMetadataEncoder

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("B84E2C09-78C9-4AC4-8BD3-524AE1663A2F")]
public class FastMetadataEncoder : ComObject
Inheritance
FastMetadataEncoder

Constructors

FastMetadataEncoder(ImagingFactory, BitmapDecoder)

Initializes a new instance of the FastMetadataEncoder class from a BitmapDecoder

public FastMetadataEncoder(ImagingFactory factory, BitmapDecoder decoder)

Parameters

factory ImagingFactory

The factory.

decoder BitmapDecoder

The decoder.

FastMetadataEncoder(ImagingFactory, BitmapFrameDecode)

Initializes a new instance of the FastMetadataEncoder class from a BitmapFrameDecode

public FastMetadataEncoder(ImagingFactory factory, BitmapFrameDecode frameDecoder)

Parameters

factory ImagingFactory

The factory.

frameDecoder BitmapFrameDecode

The frame decoder.

FastMetadataEncoder(nint)

public FastMetadataEncoder(nint nativePtr)

Parameters

nativePtr nint

Properties

MetadataQueryWriter

Proxy function for the GetMetadataQueryWriter method.

public MetadataQueryWriter MetadataQueryWriter { get; }

Property Value

MetadataQueryWriter

Methods

Commit()

Finalizes metadata changes to the image stream.

public void Commit()

Remarks

If the commit fails and returns , ensure that the image decoder was loaded using the WICDecodeMetadataCacheOnDemand option. A fast metadata encoder is not supported when the decoder is created using the WICDecodeMetadataCacheOnLoad option.

If the commit fails for any reason, you will need to re-encode the image to ensure the new metadata is added to the image.

Operators

explicit operator FastMetadataEncoder(nint)

public static explicit operator FastMetadataEncoder(nint nativePtr)

Parameters

nativePtr nint

Returns

FastMetadataEncoder