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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -