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から取得するために以下のコードを使用しようとしました。私の問題は次のとおりです。BitMapを入手する方法がわからないIRandomAccessStreamWithContentTypeIRandomAccessStreamWithContentTypeをBitMapImage UWPに変換するにはどうすればよいですか?
どうすれば入手できますか?
[この](https://stackoverflow.com/questions/15328084/convert-irandomaccessstreamwithcontenttype-to-byte)の回答を参照してください。 – CodingYoshi
[IRandomAccessStreamWithContentTypeをByte \ [\]]に変換する可能性のある複製(https://stackoverflow.com/questions/15328084/convert-irandomaccessstreamwithcontenttype-to-byte) – Razor