c# - How to convert a IStorageItem item to a BitmapImage -
Do anyone know how to convert iatorridge item items from camerolol to bitmap image?
Here is my code:
Private async zero Button_Click (Object Sender, RoutedEventArgs e) {StorageFolder picturesFolder = KnownFolders.CameraRoll; IReadOnlyList & LT; IStorageItem & gt; ItemsList = Waiting for pictures Folder.GetItemsAsync (); Bitmap image [] images = new bitmap image [item list.account]; Int i = 0; Foreign items (different items in item items) {if (item is storage folder) {} else {i ++; //Images[i].SetSource(item); }}
in your second block
other {Uses (Var Stream = Waiting for Item. OpenRaidSync ()) {Waiting for pictures [i] .SetSourceAsync (stream); }}
Comments
Post a Comment