| 120 wchar_t* wpath = str2wstr(path, nullptr); |
120 wchar_t* wpath = str2wstr(path, nullptr); |
| 121 std::wstring wPath = wpath; |
121 std::wstring wPath = wpath; |
| 122 std::wstring uriPath = L"file:///" + wPath; |
122 std::wstring uriPath = L"file:///" + wPath; |
| 123 Uri uri{ uriPath }; |
123 Uri uri{ uriPath }; |
| 124 |
124 |
| 125 BitmapImage bitmapImage = BitmapImage();UiImageSource |
125 BitmapImage bitmapImage = BitmapImage(); |
| 126 bitmapImage.UriSource(uri); |
126 bitmapImage.UriSource(uri); |
| 127 ImageSource src = bitmapImage; |
127 ImageSource src = bitmapImage; |
| 128 |
128 |
| 129 UiImageSource *imgdata = new UiImageSource(src); |
129 UiImageSource *imgdata = new UiImageSource(src); |
| 130 obj->set(obj, imgdata, UI_IMAGE_OBJECT_TYPE); |
130 obj->set(obj, imgdata, UI_IMAGE_OBJECT_TYPE); |