Class WIC.FormatConverter
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
ptrvoid*
Fields
IID
public static readonly Guid IID
Field Value
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
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
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
sourceWIC.BitmapFrameDecodedstFormatGuid