14 Aug
2020
14 Aug
'20
2:43 p.m.
We shouldn't use CoCreateInstance in our implementations, because some Windows programs and Wine components use WIC without initializing COM. This is done by calling WICCreateImagingFactory_Proxy. In this case, I would set a value containing the bpp when setting pixel_format. If you really need to query component info, you can use CreateComponentInfo directly. Of course, using CoCreateInstance and IWICImagingFactory_CreateComponentInfo in a test is completely fine.