Win2D CanvasBitmap::CreateFromBytes arguments don't match
See the question and my original answer on StackOverflowThe code needs an extra cast, so something like this:
auto bitmap =
winrt::Microsoft::Graphics::Canvas::CanvasBitmap::CreateFromBytes(
device, view, (int32_t)inputImage.cols, (int32_t)inputImage.rows,
(winrt::Windows::Graphics::DirectX::DirectXPixelFormat const&)format);