I'm creating a wpf application and implementing usb webcam to my Project using aforge. In my CameraWindow
I have an Image
control where I'm displaying lastest captured image from my usb webcam. Here is the sample
In my thirt window (AllCapturedImages
) I have an Image
control and in it
I'm displaying latest captured image from usb webcam. This happens using Action()
in my CameraWindow
.
<Image x:Name="newlyAddedImage" Margin="10,10,230,10"/>
public Action<BitmapImage> newlyCapturedImage;
if (newlyCapturedImage != null)
{
newlyCapturedImage(CapturedImages.Last());
}
In the same window (AllCapturedImages
) I have three more Image
controls
Here is one of them:
<Button x:Name="PreviewButton1" Margin="577,10,25,404">
<Button.Template>
<ControlTemplate>
<Image x:Name="SPPreviewImage1"></Image>
</ControlTemplate>
</Button.Template>
</Button>
and what I want is change/update these Image
's Source
every time I capture an image.