I'm getting the following error when calling IWICComponentFactory.CreateBitmapFromMemory and passing it a pointer to Scan0 of a 32bppArgb GDI+ bitmap WINCODEC_ERR_WIN32ERROR 0x88982F94 Windows Codecs received an error from the Win32 system. IWICComponentFactory interface decl: new IWICBitmap CreateBitmapFromMemory( uint uiWidth, uint uiHeight, [MarshalAs(UnmanagedType.LPStruct)] Guid pixelFormat, uint cbStride, uint cbBufferSize, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex [...] read more