【发布时间】:2017-05-29 15:51:23
【问题描述】:
var contactStore = await ContactManager.RequestStoreAsync();
Contact Mycontact = await contactStore.GetContactAsync(contact.Id);
if (Mycontact.Thumbnail != null)
{
using (IRandomAccessStreamWithContentType stream = await Mycontact.Thumbnail.OpenReadAsync())
{
// todo: get bitmapimage
}
}
我尝试使用下面的代码从 UWP 获取我的联系人的图像。我的问题是:我不知道如何从 IRandomAccessStreamWithContentType
获取位图我怎样才能得到它?
【问题讨论】: