예제 #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);
        }
예제 #2
0
파일: ScanCallback.cs 프로젝트: gas3/twain
 public void ImageReceived(byte[] imageData, RecoveryIndexImage indexImage)
 {
     ImageCallback?.Invoke(imageData, indexImage);
 }