Ejemplo n.º 1
0
 //-------------------------------------------------------------------------------------------------
 private void RaiseImageReceivedEvent(ImageReceiveEventArgs imageReceivedEventArgs)
 {
     if (this.ImageReceived != null)
     {
         this.ImageReceived(imageReceivedEventArgs);
     }
 }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------------------------------------
        //-------------------------------------------------------------------------------------------------
        //-------------------------------------------------------------------------------------------------
        //Обработка плучения изображения
        private void ImageGetter_ImageReceived(Image newImage)
        {
            Bitmap       newBitmap    = newImage as Bitmap;
            BitmapSource bitmapSource = ImagesConverter.CreateBitmapSourceFromBitmap(newBitmap);

            this.receivedImage = new WriteableBitmap(bitmapSource);
            ImageReceiveEventArgs imageReceivedEventArgs = new ImageReceiveEventArgs(this.receivedImage);

            this.RaiseImageReceivedEvent(imageReceivedEventArgs);
        }