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
 Acquire from scanner without imageenview component
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

nwscomps

185 Posts

Posted - Jan 21 2019 :  06:40:45  Show Profile  Reply
I have placed aTimageenMIO on a form. I want to acquire from scanner without using imageenview or imageenMView.
So I write:

if imageenioscan.selectacquiresource([ieaTwain, ieaWIA, ieaDCIM]) then
imageenioscan.Acquire;

and then I handle the event:

procedure TForm1.ImageEnIoScanAcquireBitmap(Sender: TObject; ABitmap: TIEBitmap;
DpiX, DpiY: Integer; var Handled: Boolean);
begin
newimage('',false, ABitmap);
end;

After I select the source nothing happens

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html

xequte

38610 Posts

Posted - Jan 27 2019 :  17:35:10  Show Profile  Reply
Hi Francesco

I tested this today and could not reproduce using Twain.

Can you confirm what acquisition method you are using (Twain, WIA or DCIM). Does changing to a different method work?

Also, is it displaying the acquisition UI or does it fail before this?

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

nwscomps

185 Posts

Posted - Jan 31 2019 :  04:27:25  Show Profile  Reply
Hi Nigel it was failing to show the acquisition form, and I applied a small fix to Imageen. Now the acquisition method form appears and I can select the method. I selected wia, to take the pictures from my tablet, but after that nothing happens.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
Go to Top of Page

xequte

38610 Posts

Posted - Jan 31 2019 :  16:26:38  Show Profile  Reply
Hi Francesco

I tried to reproduce this, but could not (I used the All Acquire demo and replaced the TImageEnMView with a TImageEnMIO).

I did find a bug that causes the params list to become misaligned in this configuration. It's possible that this is causing the problem, but your OnAcquireBitmap event should still have been called (at least once).

Does your TImageEnMIO.MBitmap contain any images after the acquire?

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