[英]Save Images locally using DJI SDK for Windows
I have followed this tutorial ( https://developer.dji.com/windows-sdk/documentation/tutorials/index.html ) to view FPV of the drone's video and was successful.我已按照本教程( https://developer.dji.com/windows-sdk/documentation/tutorials/index.html )查看无人机视频的 FPV 并成功。 How to save images locally on my computer?
如何在我的计算机上本地保存图像?
async void ReceiveDecodedData(byte[] data, int width, int height) {
}
byte[] data is in RGBA format. byte[] 数据为 RGBA 格式。 I tried to use bitMap, but got an error that it cannot decode the data
我尝试使用 bitMap,但出现无法解码数据的错误
//{
// var ignored = Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =>
// {
// var image = new BitmapImage();
// var stream = new Windows.Storage.Streams.InMemoryRandomAccessStream();
// await stream.WriteAsync(data.AsBuffer());
// stream.Seek(0);
// await image.SetSourceAsync(stream);
// });
//}
I would like to save an image of RGBA data locally using information from the byte[] data array.我想使用 byte[] 数据数组中的信息在本地保存 RGBA 数据的图像。 Any feedback is appreciated
任何反馈表示赞赏
I know it's late, but you should take a look at their PlayBack page.我知道已经很晚了,但你应该看看他们的播放页面。
https://github.com/dji-sdk/Windows-SDK https://github.com/dji-sdk/Windows-SDK
You can download photos and videos.您可以下载照片和视频。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.