954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Silverlight video capture

I'm creating a new functionality in my website. An e-card sender.
http://www.game4tress.com/ecardsender.aspx
My problem is that i can initialize the webcam but i cannot set the image (source,...) inside an image control.
I've tryed several thinks and google about it, but i found nothing.
My main goal is to set the imgMain control source property to the video that is being displayed inside the Ellipse or directly set the webcamBrush to the imgMain.Source, so i could be able to show it to the user and send it to the desired e-mail
Can you please help?
My thanks in advanced

This is the code:

Dim webcamBrush As VideoBrush
Dim el As Ellipse

If Not CaptureDeviceConfiguration.RequestDeviceAccess() Then

Else
   Dim videoDevice = CaptureDeviceConfiguration.GetAvailableVideoCaptureDevices()

   Dim cs = New CaptureSource()
   cs.VideoCaptureDevice = videoDevice(0)
   webcamBrush = New VideoBrush
   webcamBrush.SetSource(cs)

   el = New Ellipse()
   el.Fill = webcamBrush
   el.Width = 400
   el.Height = 400
   cs.Start()
game4tress
Newbie Poster
16 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: