/// <summary> /// Raises the <see cref="BitmapStreamed"/> event. /// </summary> /// <param name="sender">The <see cref="Camera"/> that raised the event.</param> /// <param name="bitmap">The <see cref="Bitmap"/> that contains the bitmap from the camera.</param> protected virtual void OnBitmapStreamedEvent(Camera sender, Bitmap bitmap) { if (OnBitmapStreamed == null) { OnBitmapStreamed = new BitmapStreamedEventHandler(OnBitmapStreamedEvent); } if (Program.CheckAndInvoke(BitmapStreamed, OnBitmapStreamed, sender, bitmap)) { BitmapStreamed(sender, bitmap); } }
private void OnBitmapStreamed(Camera sender, Bitmap e) { if (this.onBitmapStreamed == null) { this.onBitmapStreamed = this.OnBitmapStreamed; } if (Program.CheckAndInvoke(this.BitmapStreamed, this.onBitmapStreamed, sender, e)) { this.BitmapStreamed(sender, e); } }