Hi
If I perform safe a image after scan (SaveAsByteArray) with 600dpi color and BMP/TIFF as byte array (in memory) it takes too long (more that 10 min.).
Is it somehow possible to optimize this process?
Thank you
Br,
Toan
it takes too long (more that 10 min.).
[b] byte[] imageBytes = new byte[0];
int nBytesRead = imageBytes.Length;[/b]
// Save to byte array check
DateTime start = DateTime.Now;
_logger.logDebug("imageOrPreviewScan(): save to byte array timer start time --> {0}", start);
[b]_gdTwain.SaveAsByteArray(ref imageBytes, ref nBytesRead, imageFormat.ToString(), 0);[/b]
DateTime end = DateTime.Now;
_logger.logDebug("imageOrPreviewScan(): save to byte array timer stop time --> {0}", end);
_logger.logDebug("imageOrPreviewScan(): save to byte array time elapsed: {0}", end - start);
[b] image = new byte[imageBytes.Length];
imageBytes.CopyTo(image, 0);[/b]
Return to GdTwain [Pro] ActiveX
Users browsing this forum: Google [Bot] and 1 guest