Click here to Skip to main content
15,887,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I am developing an application with a scanner. In the scanner there is a camera. When I click the button it captures the image. It is working fine in windows forms.
But when I implement it in WPF with image control, I do not get a snap shot image on my control.

So please tell me the exact procedure to take a snapshot from the scanner and display it in WPF. Please help me.
Posted
Updated 7-Mar-11 21:55pm
v3
Comments
Kubajzz 8-Mar-11 3:59am    
It would increase your chance to get an answer if you could provide the piece of code that made it work in WinForms and the piece of code that doesn't work in WPF.
Debojyoti Majumder 8-Mar-11 5:23am    
Can you share your code??
Sagotharan Jagadeeswaran 8-Mar-11 23:57pm    
ya, its very easy when u share ur code!.

1 solution

Use RenderTargetBitmap class to capture it. I found this interesting article here :
http://www.thomasclaudiushuber.com/blog/2008/04/06/take-snapshots-of-videos-with-wpf/[^].

Hope it helped. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900