Beispiel #1
0
        public void TwainImageReceived(RecoveryIndexImage image, byte[] thumbnail, string tempImageFilePath)
        {
            var scannedImage = new ScannedImage(image);

            if (thumbnail != null)
            {
                scannedImage.SetThumbnail(new Bitmap(new MemoryStream(thumbnail)));
            }
            ImageCallback?.Invoke(scannedImage, tempImageFilePath);
        }
Beispiel #2
0
 public void ImageReceived(byte[] imageData, RecoveryIndexImage indexImage)
 {
     ImageCallback?.Invoke(imageData, indexImage);
 }