1
ストリームにImageを書き込んだり、それを後で読みたいと思っています。
Im on Win 10 UWP。
私のコード:(:画像サイズが小さすぎるエラー)InMemoryRandomAccessStreamへの書き込み方法は?
InMemoryRandomAccessStream imrasIn = new InMemoryRandomAccessStream();
await _mediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), imrasIn);
DetectedFaces = await _faceClient.DetectAsync(imrasIn.GetInputStreamAt(0).AsStreamForRead());
それは動作しません、DetectAsyncは、空のストリームを取得します。
他のクラスは必要ですか? CapturePhotoToStreamAsync
はIRandomAccessStream
が、DetectAsync
はStream
が必要です。