Cannot read image file using BitmapImage with absolute path ? (C++ SDK 2.0.2f2)
Posted: 20 Jun 2017, 10:21
I tried to read a PNG file using the following code (the file V1.png exists under D:\ directory, and not broken):
But it resulted in an error given by Noesis error callback
Code: Select all
Ptr<BitmapSource> _source = *new BitmapImage("D:\\V1.png");
Could you tell me what's wrong with the code ? Is my URI format was wrong ?Unable to load image 'D:\V1.png', filename Gui\Core\Src\BitmapImage.cpp, line 150)