Example #1
0
 public StreamEventArgs(WebcamCapture stream, int streamId)
 {
     if (stream == null)
     {
         throw new ArgumentNullException("stream");
     }
     if (streamId < 0)
     {
         throw new ArgumentOutOfRangeException("streamId");
     }
     Stream   = stream;
     StreamId = streamId;
 }
Example #2
0
 public ImageCapturedEventArgs(
     WebcamCapture stream, int streamId, Util.SharedRef <IRasterImageBase> colorImage,
     Util.SharedRef <IRasterImageBase> grayImage) : base(stream, streamId)
 {
     if (colorImage == null)
     {
         throw new ArgumentNullException("colorImage");
     }
     if (grayImage == null)
     {
         throw new ArgumentNullException("grayImage");
     }
     this.colorImage = colorImage;
     this.grayImage  = grayImage;
 }