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); }
public void ImageReceived(byte[] imageData, RecoveryIndexImage indexImage) { ImageCallback?.Invoke(imageData, indexImage); }