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
 How to clear frame selection crated in the Twain interface dialog ?

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
mastinf Posted - Feb 19 2025 : 08:32:29
Hello,

This is the situation:

the first image is acquired using the scanner interface:

img.io.TwainParams.VisibleDialog:=true;

in the scanner interface the user do a selection and acquires a partial frame.

Then next image acqusition is made without the scanner interface

img.io.TwainParams.VisibleDialog:=false;


In the second acquisition unfortunaltely it's still used the selection made in the scanner interface. Is it possible to clear the selection created in the scanner interface by code ?

thanks

Roberto

ImageEn 12.5.0

Roberto Nicchi
Master Informatica
Italy
3   L A T E S T    R E P L I E S    (Newest First)
mastinf Posted - Feb 22 2025 : 07:35:50
Ok i have found the solution looking into a demo application:

img.IO.TwainParams.SetDefaultParams; <--- This doesn't help
img.io.TwainParams.AcquireFrameEnabled:=true; <---This line and the next one solve the problem
img.IO.TwainParams.Update;
img.io.TwainParams.VisibleDialog:=false;
img.IO.Acquire;

Roberto Nicchi
Master Informatica
Italy
mastinf Posted - Feb 22 2025 : 07:15:30
Hello,

I have just tried to execute the following code

img.IO.TwainParams.SetDefaultParams();
img.io.TwainParams.VisibleDialog:=false;
img.IO.Acquire;


but it didn't help. I miss something?

thanks

Roberto

Roberto Nicchi
Master Informatica
Italy
xequte Posted - Feb 20 2025 : 13:33:59
Hi Roberto

You can use:

https://www.imageen.com/help/TIETwainParams.SetDefaultParams.html

Nigel
Xequte Software
www.imageen.com