Home > Net >  C # camera problem
C # camera problem

Time:09-29

Private void btnStart_Click (object sender, RoutedEventArgs e)//button triggers
{
//judge btnStart button Tag attribute value, if 0 indicates camera to close the window, is open, closed or
If (btnStart. Tag. The ToString ()=="0")
{
//if _VedioAndController camera action class is null, said not instantiate, initialize camera action class
If (VedioAndController==null)//VedioAndController camera

VedioAndController=new IpCameraHelper (Function. GetConfigValue (" RoundVedioIp "), and the Function. The GetConfigValue (" RoundVedioUserName "), and the Function. The GetConfigValue (" RoundVedioPassWord "),
New Action ((arg)=& gt;
{
//arg. FrameReadyEventArgs. BitmapImage for camera images of the return, will be assigned to the img image control that is used to display the picture
Img. Source=arg. FrameReadyEventArgs. BitmapImage;
}));
I would like to ask is: new IpCameraHelper (Function. The GetConfigValue (" RoundVedioIp "), and the Function. The GetConfigValue (" RoundVedioUserName "), and the Function. The GetConfigValue (" RoundVedioPassWord "), is what meaning ah initialize camera action class, and then? Function. GetConfigValue (" RoundVedioIp "), and the Function. The GetConfigValue (" RoundVedioUserName "), and the Function. The GetConfigValue (" RoundVedioPassWord "), which is in the stem ah ah, want to cry
  •  Tags:  
  • C#
  • Related