Example #1
0
 /// <summary>
 /// This method raises the <see cref="VideoFrameAvailable"/>
 /// event by invoking the delegates.
 /// </summary>
 /// <param name="e">A <see cref="BitmapEventArgs"/> with the event data.</param>.
 private void OnVideoFrameAvailable(BitmapEventArgs e)
 {
     if (this.VideoFrameAvailable != null)
     {
         this.VideoFrameAvailable(this, e);
     }
 }
Example #2
0
 /// <summary>
 /// This method raises the <see cref="VideoFrameAvailable"/> 
 /// event by invoking the delegates.
 /// </summary>
 /// <param name="e">A <see cref="BitmapEventArgs"/> with the event data.</param>.
 private void OnVideoFrameAvailable(BitmapEventArgs e)
 {
   if (this.VideoFrameAvailable != null)
   {
     this.VideoFrameAvailable(this, e);
   }
 }
Example #3
0
 /// <summary>
 /// The <see cref="OgamaControls.VideoFramePusher.VideoFrameAvailable"/> event handler.
 /// Updates the pictures background with the new video frame.
 /// </summary>
 /// <param name="sender">Source of the event.</param>
 /// <param name="e">A <see cref="BitmapEventArgs"/> with the new bitmap.</param>
 private void videoFramePusher_VideoFrameAvailable(object sender, BitmapEventArgs e)
 {
   this.Picture.BackgroundImage = e.Bitmap;
 }