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: