| 29 | } |
| 30 | |
| 31 | HBITMAP GetHBitmapFromFile(std::wstring_view path) |
| 32 | { |
| 33 | winrt::com_ptr<IShellItem> item = CreateItemFromParsingName(ToBackslash(path).data()); |
| 34 | HBITMAP bitmap{}; |
| 35 | item.as<IShellItemImageFactory>()->GetImage({ 96, 96 }, SIIGBF_BIGGERSIZEOK, &bitmap); |
| 36 | return bitmap; |
| 37 | } |
| 38 | |
| 39 | winrt::Microsoft::UI::Xaml::Media::Imaging::WriteableBitmap HBitmapToWriteableBitmap(HBITMAP hBitmap, HBITMAP hMask) |
| 40 | { |
no test coverage detected