Contact us


All times are UTC - 8 hours



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Offline Profile  


Joined: Wed Sep 23, 2009 2:41 am
Posts: 2
Hello,

I'm scanning multiple pages and wanting to perform operations (rotate left, rotate right, mirror, flip) through my own UI on the current selected image in the DWT control. The images are in a 4-by-2 layout (8 on the screen) and while the user can select images, I cannot find a property or method which will tell me which one is selected. CurrentImageIndexInBuffer always gives the index of the last image which is not what I need.

Any help appreciated -

Thanks
Kieren


User avatar
Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1399
Hi Kieren,

The image you selected will be highlighted in the DWT control.

CurrentImageIndexInBuffer can give the information you need. To set the selected image as the current image in DWT, you can call CurrentImageIndexInBuffer in the OnMouseClick event. The event is fired when the mouse clicks on an image.
http://www.dynamsoft.com/help/TWAIN/Web ... eClick.htm

Below is a simple sample for you:

Code:
<script language="javascript">

function OnMouseClickFunction(index)
{
   frmScan.DynamicWebTwain1.CurrentImageIndexInBuffer=index;
}

</script>

<script language=javascript for=DynamicWebTwain1 event=OnMouseClick(index)>
 
   OnMouseClickFunction(index);
 
</script>


Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Offline Profile  


Joined: Wed Sep 23, 2009 2:41 am
Posts: 2
Thanks, that did the trick.


User avatar
Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1399
:D

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: Robert, Catherine, Robby


Who is online

Users browsing this forum: adgoaj9q and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Copyright © 2013 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team