You already have a StorageFile in your array returned from GetStorageItemsAsync. Just cast the StorageItem to a StorageFile. There is no need to try to reopen it with your GetFileFromPathAsync line.
You will also need to handle the case where the file you get isn't a bitmap.
--Rob
No comments:
Post a Comment