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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Get Scanner Settings on OnAcquireBitmap

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rswyman@docuxplorer.com Posted - May 02 2015 : 07:42:14
Hi All
I'm try to get the ImageEnMView1.MIO.TWainParams.XResolution.CurrentValue and/or
ImageEnMView1.MIO.TWainParams.StandardSize.CurrentValue during the OnAcquireBitmap event.

I tried using ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update but the values I get are the defaults I set before the users sees twain interface dialog. I need to get the users adjusted twain interface dialog values.

Its seems that only after the twain interface dialog is closed am I able to get the uses selected values. Please advise.

Thanks
Ron
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 05 2015 : 17:38:29
Yes, but it sounds like your Twain device/driver does not update these values. ImageEn is only returning the values that have been set by the Twain driver. If it does not set them, then you will only see the default (what you have set).


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
rswyman@docuxplorer.com Posted - May 05 2015 : 17:19:52
Hi Nigel,

Yes, I can set these all the twain properties before the twain dialog is shown but if the user adjust these values like resolution ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update do not update ImageEnMView1.MIO.TWainParams.XResolution.CurrentValue properties during the OnAcquireBitmap event.
xequte Posted - May 05 2015 : 17:05:59
Hi Ron

Have you confirmed whether your Twain device ever sets these properties? I.e. is ImageEn failing to fill the values when you expect (OnAcquireBitmap event), or are the values never filled?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
rswyman@docuxplorer.com Posted - May 05 2015 : 09:51:48
That I understand. I tried using ImageEnMView1.MIO.TwainParams.GetFromScanner and ImageEnMView1.MIO.TwainParams.Update during the OnAcquireBitmap but it has no effected. Is there a working around?

We need to know the DPI and or the page size to calculate the DPI from the scanned bitmap.

Thanks
Ron
xequte Posted - May 04 2015 : 00:07:47
Hi Ron

StandardSize and XResolution are set when the using AcquireOpen, Acquire, etc.

However not all devices set these properties, in which case they will remain as the default.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com