ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scan directly to folder and update thumbnails in real time.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndNit

Brazil
86 Posts

Posted - Apr 15 2026 :  16:30:43  Show Profile  Reply
I have the following request, which seems simple to solve but I haven't been able to make progress:

I would like to scan several pages using an ADF scanner and, during the scanning process, have a thumbnail appear on the screen and be saved directly to a folder, with the same characteristics (color, size in KB, etc.) as when they come out of the scanner.

Currently I do it like this:

ImageEnMView1.EnableLoadEXIFThumbnails     := True;
ImageEnMView1.MIO.TwainParams.FileTransfer := True;
ImageEnMView1.MIO.Acquire;
contador := ImageEnMView1.ImageCount - 1;
//
ImageEnMView1.MIO.Params[0].TIFF_Compression := ioTIFF_JPEG;
ImageENMView1.MIO.DuplicateCompressionInfo(); 
//
If `contador` < 0 then begin
   imgAguardando.Visible := True;
   ImageEnMView1.Clear;
   image.Clear;
   Abort;
end
else begin
   for `c` := 0 to contador do
   ImageEnMView1.GetImageToFile(c, 'C:\Projetos\NovaGmCapture\Win32\Debug\IncluiPagina\' + IntToStr(c) + '.tif');
end;

However, the thumbnails are not updated in real time on the form, and I need to force the image settings to make them small; otherwise, each image comes out as 11MB from the scanner.

How can I solve this? My idea is to work as if it were a Kodak Capture Desktop?

xequte

39397 Posts

Posted - Apr 16 2026 :  19:24:39  Show Profile  Reply
Sorry, I'm holiday till the end of next week, so can't test this directly. Have you considered using the OnAcquireBitmap event to save each image as it is acquired (optionally resizing the image):

http://www.imageen.com/help/TImageEnMView.OnAcquireBitmap.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

39397 Posts

Posted - Apr 27 2026 :  23:03:35  Show Profile  Reply
Hi

Using the default functionality images when they are acquired will be added to the TImageEnMView at the full scan quality (unless TImageEnMView.StoreType is ietThumb) so your options are:

1. Set the StoreType is ietThumb and use the OnAcquireBitmap event to save each image (leave Handled = False)

2. Use OnAcquireBitmap event to save each image, then scale the image to your desired thumbnail size and add them to the TImageEnMView (setting Handled := True)


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: