Table of Contents

Class WIC.FormatConverter

Namespace
Xui.Runtime.Windows
Assembly
Xui.Runtime.Windows.dll

Wraps IWICFormatConverter — converts a WIC.BitmapFrameDecode to a target pixel format (typically Pbgra32). Inherits IWICBitmapSource methods at the same vtable slots as WIC.BitmapFrameDecode.

public class WIC.FormatConverter : COM.Unknown, IDisposable
Inheritance
WIC.FormatConverter
Implements
Inherited Members

Constructors

FormatConverter(void*)

public FormatConverter(void* ptr)

Parameters

ptr void*

Fields

IID

public static readonly Guid IID

Field Value

Guid

Methods

CopyPixels(uint, uint, byte*)

Copies converted pixels into buffer (full image, no rect clipping). vtable [7] — IWICBitmapSource::CopyPixels

public void CopyPixels(uint stride, uint bufferSize, byte* buffer)

Parameters

stride uint
bufferSize uint
buffer byte*

GetSize(out uint, out uint)

Returns the pixel dimensions after conversion. vtable [3] — IWICBitmapSource::GetSize

public void GetSize(out uint width, out uint height)

Parameters

width uint
height uint

Initialize(BitmapFrameDecode, in Guid)

Configures the converter to produce pixels in dstFormat. vtable [8] — IWICFormatConverter::Initialize

public void Initialize(WIC.BitmapFrameDecode source, in Guid dstFormat)

Parameters

source WIC.BitmapFrameDecode
dstFormat Guid