Author |
Topic |
|
nwscomps
185 Posts |
Posted - Jan 21 2019 : 06:40:45
|
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
|
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
|
|
|
nwscomps
185 Posts |
Posted - Jan 31 2019 : 04:27:25
|
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 |
|
|
xequte
38610 Posts |
Posted - Jan 31 2019 : 16:26:38
|
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
|
|
|
|
Topic |
|
|
|