//   

 1;

 ()
  
    ("C:\GetWeight.dll", "WeightLib", AddInType.Native);
	
    1 = ("AddIn.WeightLib.WeightClass");
	
    //  ip-      GetWeight 
    //           
    // c   
    (":     GetWeight.");
      1.("localhost", 8810)  // : .Connect("localhost", 8810)
    
      (":       GetWeight.");
    ;
	
    //   (  )     
    ("", 1);
  	
    ("    GetWeight.dll");
    (());
  ;  	


 (, )
  
      . // : .ServerConnected
     
      //     ,      
      . =  (255,0,0);
      . = "   ";
      ;
    ;  
	  
      . // : .IndicatorConnected
     
      //     ,      
      . =  (255,0,0);
      . = "   ";
      ;
    ;  
	  
     . // : .Motion
     
      //     ,      
      . =  (128,128,128);
    
      //   ,      
      . =  (0,0,0);
    ;  
	
    //    
    . = .; // : .Weight
  
    (());
  ; 


 ()
  (1, .1);


 1()
  
      1. // : .ServerConnected
     
      (":    ");
      ;
    ;  
	  
      1. // : .IndicatorConnected
     
      (":    ");
      ;
    ;  
	  
     1. // : .Motion
     
      (":   ");
      ;
    ;  
	
    //    
    ("  : " + 1.); // : .Weight
  
    (":    ");
  ; 


 ()
  //     ip Hikvision
  // 1 -   snapsoshot ip- 
  // 2 -  ip- 
  // 3 -  ip- 
  // 4 -   JPG    
  // 5 -     (0 -   )
  // 6 -     (0 -   )
  // 7 -    10..100 (0 -   )
   = 1.("http://192.168.2.100/ISAPI/Streaming/channels/101/picture?snapShotImageType=JPEG", "admin", "12345", "C:\snapshot.jpg", 1280, 720, 55);  // : .Snapshot
    <> ""
   
    (": " + );
  
    ("   : C:\snapshot.jpg");
  ;  


 ()
  
    ("");
	
    ("     GetWeight.");
    1.(); // : .Disconnect()
  	
    (());
  ;  	

