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
 Using TImageEnMView to generate single tif files
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rogmartins

Brazil
2 Posts

Posted - Oct 11 2011 :  08:58:21  Show Profile  Reply
Hi !
How can i generate several single tif files by TImageEnMView.MIO.Acquire ?

Example: when i feed scanner with 10 papers, i need to get respectively 10 files tif, 1 per image.
Using OnAcquireBitmap event and ABitmap.Write is not working.

Thnaks

fab

1310 Posts

Posted - Oct 11 2011 :  09:03:03  Show Profile  Reply
Hi,
after Acquire returns, you have to loop among pages and call GetImageToFile to save each page. For example:
ImageEnMView1.MIO.Acquire();
for i:=0 to ImageEnMView1.ImageCount-1 do
  ImageEnMView1.GetImageToFile(i, Format('page%d.tif', [i]));
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: