Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

OnImageAreaSelected

Description

Fired when mouse selects an area on an image and the value of the MouseShape property is set to FALSE.

Syntax

Object_OnImageAreaSelected(Short sImageIndex, Long Left, Long Top, Long Right, Long Bottom)

Remarks

Short sImageIndex >=0. When the value of sImageIndex equals -1, it indicates that mouse is not on any image.

Long Left: the long point number for the left side of the rectangle are the mouse selects.

Long Top: the long point number for the top side of the rectangle are the mouse selects.

Long Right: the long point number for the right side of the rectangle are the mouse selects.

Long Bottom: the long point number for the bottom side of the rectangle are the mouse selects.

See Also

OnMouseClick Event, OnMouseDoubleClick Event, OnMouseRightClick Event, OnMouseMove Event, OnImageAreaDeSelected Event, Crop(), CropToClipboard()

Sample

A JavaScript sample is provided.

<script language="javascript">

function OnImageAreaSelectedFunction(index) {
  //add your code here. This code snippet will be executed when the mouse
selects an area on an image.
}

</script>

<script language=javascript for=DynamicWebTwain1 event=OnImageAreaSelected(index)>
 
   OnImageAreaSelectedFunction(index);
 
</script>


 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.