我可以轻松地创建使用下面的代码资源JPG图像文件的BitmapImage ... Windows::Foundation::Uri^ uri = ref new Windows::Foundation::Uri(L"ms-appx:///Hippo.JPG");
Imaging::BitmapImage^ image = ref new Imaging::BitmapImage(uri);
可能重复: Fast way to convert a Bitmap into a Boolean array in C#? 在我的项目 我有一种资源,是一个黑白位图,其中我使用持有一些4x4黑白精灵。在我可以有效地使用这些数据之前,虽然我需要将它转换为2D多维(或锯齿状,无所谓)布尔数组,其中false表示白色,黑色表示true。 这是我目前的解决方案: public Bitmap Pieces