简体   繁体   English

xamarin-如何将每个新的拍摄照片设置到每个帧?

[英]xamarin - How to set each new capture photo to each frame?

I'm using this plugin to take a photo and I've successfully created a command function to return the image stream and bind the source. 我正在使用插件拍照,并且已经成功创建了一个命令函数以返回图像流并绑定源。 In my app, I have 3 frames/boxes and each new captured photo should be on the frame. 在我的应用中,我有3个框/框,每张新捕获的照片都应该在框上。

Ex: the first captured photo should be on the first frame then when I capture again(which is now second photo) it should be on the second frame. 例如:拍摄的第一张照片应该在第一帧,然后当我再次拍摄(现在是​​第二张照片)时,它应该在第二帧。

this is how I do the binding for the image. 这就是我对图像进行绑定的方式。

<ffimageloading:CachedImage x:Name="FirstPhoto" Aspect="AspectFit"LoadingPlaceholder="loader.gif" Source="{Binding ImagePath}" />

My question is how I will set each new captured photo on each frame? 我的问题是如何在每帧上放置每张新拍摄的照片?

在此处输入图片说明

thanks. 谢谢。

您的模型中需要具有多个ImagePath属性(即ImagePath1,ImagePath2,ImagePath3),并且在拍摄完每张照片后更新相应的属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 捕获每个 WPF MediaElement 帧 - Capture each WPF MediaElement frame 以 xamarin 形式拍摄照片 - Capture photo in xamarin forms Xamarin:为每个选项卡设置不同的背景(在TabHost中) - Xamarin : set different background to each tab (in TabHost) 如何在新行的列表中显示每组数据? - How to display each set of data in a List in a new row? 如何从每个 CollectionView 项目中获取 Xamarin? - How to get Xamarin form each CollectionView item? 如何为每个 Xamarin.Forms 页面设置不同的 colorPrimary、colorAccent...? C# - How to set different colorPrimary, colorAccent... for each Xamarin.Forms Page? C# 如何向 get 添加更多功能; 并设置; 在 Xamarin forms 中删除“=&gt;”并替换为每个代码块? - How can I add more functionality to a get; and set; in Xamarin forms by removing the “=>” and replacing with a code block for each? 每组操作都可重用的ObjectContext或新的ObjectContext? - Reuseable ObjectContext or new ObjectContext for each set of operations? 使用tabhost中的每个选项卡设置axml布局:Xamarin Android - Set axml layout with each tab in tabhost: Xamarin Android 从视频的每一帧中捕获单个像素行并将它们编译在一起 - Capture a single pixel row from each frame of video and compile them together
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM