Basic Edit

Methods
AddText() ChangeBitDepth() ChangeImageSize()
ConvertToGrayScale() CopyToClipboard() CreateTextFont()
Crop() CropToClipboard() CutFrameToClipboard()
CutToClipboard() Erase() Flip()
Mirror() MoveImage() OverlayRectangle()
RemoveAllImages() RemoveAllSelectedImages() RemoveImage()
Rotate() RotateEx() RotateLeft()
RotateRight() SetDPI() SetImageWidth()
SetSelectedImageArea() SetSelectedImageIndex() ShowImageEditor()
SwitchImage()
Properties
SelectionRectAspectRatio
Events
OnImageAreaSelected OnImageAreaDeSelected OnIndexChangeDragDropDone

Methods

AddText()
Adds text on an image.
Syntax .AddText(nImageIndex, x, y, text, textColor, backgroundColor, backgroundRoundRadius, backgroundOpacity);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number x: Specifies the x-coordinate of the upper-left corner of the text.
number y: Specifies the y-coordinate of the upper-left corner of the text.
string text: Specifies the content of the text.
number textColor: Specifies the color for the text.
number backgroundColor:Specifies the background color. It is a value Specifying the 24-bit RGB value. Default is white (0xffffff). The byte-ordering of the 24-bit RGB value is RRGGBB. RR represents red, GG represents green and BB represents blue.
number backgroundRoundRadius:Specifies the background round radius ranging from 0 to 0.5.
number backgroundOpacity:Specifies the opacity of the color. 1.0 is 100% opaque and 0.0 is totally transparent.
Return value boolean
Example
DWObject.CreateTextFont(50, 30, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, "Arial");
DWObject.AddText(0, 250, 600, 'Dynamic Web TWAIN', 0x0000ff, 0xff0000, 0.5, 0.5);
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v7.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0
ChangeBitDepth()
Changes the bitdepth of a specified image. By doing this, you can change the pixel type of the image.
Syntax .ChangeBitDepth(nImageIndex, sBitDepth, bHighQuality);
Parameters number nImageIndex: Specifies the index of the image to be changed. The index is 0-based.
number sBitDepth: Specifies the target bit depth.
boolean bHighQuality: Specifies whether or not to keep high quality while changing the bit depth. When it's true, it takes more time.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v10.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0
Usage notes The allowed bit depths are 1, 4, 8, 24.
ChangeImageSize()
Changes the size of an image specified by index.
Syntax .ChangeImageSize(nImageIndex, iNewwidth, iNewheight, newInterpolationMethod);
Parameters number nImageIndex: Specifies the index of the image to be changed. The index is 0-based.
number iNewWidth: Specifies the new width (in pixels)
number iNewHeight: Specifies the new height (in pixels)
EnumDWT_InterpolationMethod newInterpolationMethod: Specifies the algorithm used to do interpolation.
Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC
5 EnumDWT_InterpolationMethod.IM_BESTQUALITY
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
ConvertToGrayScale()
Converts a specified image to gray scale.
Syntax .ConvertToGrayScale(nImageIndex);
Parameters number nImageIndex: Specifies the index of the image to be converted. The index is 0-based.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v10.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes Typically, it only makes sense to convert a colored image to grey scale.
CopyToClipboard()
Specifies the index of image in buffer. The index is 0-based.
Syntax .CopyToClipboard(nImageIndex);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.

Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes This method makes a copy of the image to the clipboard. The copied image is in DIB format.
CreateTextFont()
Creates the font for adding text on an image using the method AddText().
Syntax .CreateTextFont(height, width, escapement, orientation, weight, italic, underline, strikeOut, charSet, outputPrecision, clipPrecision, quality, pitchAndFamily, faceName);
Parameters number height:Specifies the desired height of the font.
number width: Specifies the average width of characters in the font.
number escapement: Specifies the angle between the escapement vector and the x-axis of the display surface. The escapement vector is the line through the origins of the first and last characters on a line. The angle is measured counterclockwise from the x-axis.
number orientation: Specifies the angle between the baseline of a character and the x-axis. The angle is measured counterclockwise from the x-axis for coordinate systems in which the y-direction is down and clockwise from the x-axis for coordinate systems in which the y-direction is up.
number weight: Specifies the font weight.
number italic: Specifies an italic font if the value is not 0.
number underline: Specifies an underlined font if the value is not 0.
number strikeOut: Specifies an strikeout font if the value is not 0.
number charSet: Specifies the font's character set.
number outputPrecision: Specifies the desired output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, and pitch.
number clipPrecision: Specifies the desired clipping precision. The clipping precision defines how to clip characters that are partially outside of the clipping region.
number quality: Specifies the font's output quality which defines how carefully the GDI should attempt to match the logical-font attributes to those of an actual physical font.
number pitchAndFamily: Specifies the pitch and family of the font.
string faceName: Specifies the typeface name, the length of this string must not exceed 32 characters, including the terminating null character.
Return value boolean
Example
DWObject.CreateTextFont(50, 30, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, "Arial");
DWObject.AddText(0, 250, 600, 'Dynamic Web TWAIN', 0x0000ff, 0xff0000, 0.5, 0.5);
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v7.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0
Crop()
Crops an image of the specified index in buffer.
Syntax .Crop(nImageIndex, left, top, right, bottom);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle. The unit is pixel.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle. The unit is pixel.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v6.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes This method crops an image and replaces the original image with the cropped copy. If the application still needs the original image, use CropToClipboard() instead.
CropToClipboard()
Crops the image of a specified index in buffer to clipboard in DIB format.
Syntax .CropToClipboard(nImageIndex, left, top, right, bottom);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle. The unit is pixel.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle. The unit is pixel.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes This method crops an image and makes a copy of the cropped image to the clipboard.
CutFrameToClipboard()
Cuts the image data in the specified area to the system clipboard in DIB format.
Syntax .CutFrameToClipboard(nImageIndex, left, top, right, bottom);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle. The unit is pixel.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle. The unit is pixel.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v6.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes

Use BackgroundFillColor to specify the fill color for the cut frame.

Currently this method is only valid in Windows & Mac.

CutToClipboard()
Copies the image of a specified index in buffer to clipboard in DIB format.
Syntax .CutToClipboard(nImageIndex);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.

Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Erase()
Clears the specified area of a specified image and fill the area with the fill color.
Syntax .Erase(nImageIndex, left, top, right, bottom);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle. The unit is pixel.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle. The unit is pixel.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle. The unit is pixel.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v6.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes The fill color is set by BackgroundFillColor.
Flip()
Flips the image of a specified index in buffer.
Syntax .Flip(nImageIndex);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v6.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Mirror()
Mirrors the image of a specified index in buffer.
Syntax .Mirror(nImageIndex);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
MoveImage()
Moves a specified image.
Syntax .MoveImage(nImageIndex, nTargetImageIndex);
Parameters number nImageIndex: Specifies the index of the image to be moved. The index is 0-based.
number nTargetImageIndex: Specifies the new index.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
OverlayRectangle()
Decorates an image specified by index. The decoration is in the form of rectangles filled with transparent color.
Syntax .OverlayRectangle(nImageIndex, left, top, right, bottom, color, nOpacity);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle.
number color: Specifies the color. It is a value Specifying the 24-bit RGB value.

Default is white (0xffffff). The byte-ordering of the 24-bit RGB value is RRGGBB. RR represents red, GG represents green and BB represents blue.

number nOpacity: Specifies the opacity of the color. 1.0 is 100% opaque and 0.0 is totally transparent.
Return value boolean
Example
DWObject.OverlayRectangle(0, 50, 50, 300, 300, 0xff0000, 0.5);
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.1 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
RemoveAllImages()
Removes all images in buffer.
Syntax .RemoveAllImages();
Parameters None
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
RemoveAllSelectedImages()
Removes all selected images.
Syntax .RemoveAllSelectedImages();
Parameters None
Return value boolean
Example
//This will remove the 2nd and 3rd images
DWObject.SelectedImagesCount = 2;
for(var i = 0; i < 2; i++){
    DWObject.SetSelectedImageIndex(i,i + 1);
}
DWObject.RemoveAllSelectedImages();
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
RemoveImage()
Removes the image of a specified index in buffer.
Syntax .RemoveImage(nImageIndex)
Parameters number nImageIndex: Specifies the index of the image to be removed. The index is 0-based.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Rotate()
Rotates the image of a specified index in buffer by a specified angle.
Syntax .Rotate(nImageIndex, fAngle, bKeepSize);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number fAngle: Specifies the angle to rotate the image. Positive angle means clockwise. Negative value is counter-clockwise.
boolean bKeepSize: Specifies whether to keep the original size of the image.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v6.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes Rotate() rotates an image and replaces the original image with the rotated copy.
RotateEx()
Rotates the image of a specified index in buffer by a specified angle.
Syntax .RotateEx(nImageIndex, fAngle, bKeepSize, newInterpolationMethod);
Parameters

number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number fAngle: Specifies the angle to rotate the image. Positive angle means clockwise. Negative value is counter-clockwise.
boolean bKeepSize: Specifies whether to keep the original size of the image.
EnumDWT_InterpolationMethod newInterpolationMethod: Specifies the algorithm to do interpolation.

Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v7.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes This method rotates an image and replaces the original image with the rotated copy.
RotateLeft()
Rotates the image of a specified index in buffer by 90 degrees counter-clockwise.
Syntax .RotateLeft(nImageIndex);
Parameters

number nImageIndex: Specifies the index of image in buffer. The index is 0-based.

Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes RotateLeft() rotates an image and replaces the original image with the rotated copy.
RotateRight()
Rotates the image of a specified index in buffer by 90 degrees clockwise.
Syntax .RotateRight(nImageIndex);
Parameters

number nImageIndex: Specifies the index of image in buffer. The index is 0-based.

Return value boolean
Usage notes This method rotates an image and replaces the original image with the rotated copy.
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v4.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
SetDPI()
Changes the DPI (dots per inch) of an image specified by index.
Syntax .SetDPI(nImageIndex, xResolution, yResolution, bResampleImage, newInterpolationMethod);
Parameters

number nImageIndex: Specifies the index of the image to be changed. The index is 0-based.
number xResolution: Specifies horizontal resolution.
number yResolution: Specifies vertical resolution.
boolean bResampleImage: Specifies whether to resample the image. (The image size will change if this is set to true).
EnumDWT_InterpolationMethod newInterpolationMethod: Specifies the algorithm to do interpolation.

Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v8.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
SetImageWidth()
Changes the width of an image specified by index by adding an extra margin or removing part of the image.
Syntax .SetImageWidth(ImageIndex, iNewWidth);
Parameters number nImageIndex: Specifies the index of the image to be changed. The index is 0-based.
number iNewWidth: Specifies the new width.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v10.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
SetSelectedImageArea()
Selects a rectangular area on an image specified by index.
Syntax .SetSelectedImageArea(nImageIndex, left, top, right, bottom);
Parameters number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
number left: Specifies the x-coordinate of the upper-left corner of the rectangle.
number top: Specifies the y-coordinate of the upper-left corner of the rectangle.
number right: Specifies the x-coordinate of the lower-right corner of the rectangle.
number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v7.0 ✓ | v10.1 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes You should set Unit before using this method.
SetSelectedImageIndex()
Selects images programmatically by directly specifying the indices instead of seleting by clicking on the images.
Syntax .SetSelectedImageIndex(selectionArrayindex, newIndextobeSelected);
Parameters number selectionArrayindex: The selection array is basically an array of numbers, consisting of the indices of the selected images. This parameter specifies the index of this array.
number newIndextobeSelected: Specifies the index of the image to be selected.
Return value boolean
Example
//This will remove the 2nd and 4th images
DWObject.SelectedImagesCount = 2;
DWObject.SetSelectedImageIndex(0, 1);
DWObject.SetSelectedImageIndex(1, 3);
DWObject.RemoveAllSelectedImages();
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v7.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
ShowImageEditor()
Shows or hides the built-in image editor of Dynamic Web TWAIN.
Syntax .ShowImageEditor([strDIVID, nDIVWidth, nDIVHeight]);
Parameters The parameters are optional, you should either provide None or all 3.
string optionalDIVID: A DIV to hold the editor on the page and its size. If the parameters are not provided, the editor will take the full window space.
number nDIVWidth: The width of the DIV holding the editor.
number nDIVHeight: The width of the DIV holding the editor.
Return value boolean
Example
DWObject.ShowImageEditor('divEditor', 500,700);
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v5.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
Usage notes Only one editor is allowed on one web page. The second time you try to call this method will close the editor that is already opened.
SwitchImage()
Switches two images of specified indices in the buffer.
Syntax .SwitchImage(nImageIndex1, nImageIndex2);
Parameters number nImageIndex1: Specifies the 1st index of the images to be switched. The index is 0-based.
number nImageIndex2: Specifies the 2nd index of the images to be switched. The index is 0-based.
Return value boolean
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v5.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1

Properties

SelectionRectAspectRatio
Specifies a fixed aspect ratio to be used when you use mouse to draw a rectanglar on an image to select an area.
Type float
Accessors Get Set
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v10.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1

Events

OnImageAreaDeSelected
This event is triggered when user deselects an area (clicks outside of the drawn rectangle) on an image in Dynamic Web TWAIN viewer.
Syntax .RegisterEvent('OnImageAreaDeSelected',function(nImageIndex){...});
Arguments
  • number nImageIndex: the index of the image. It should be >=0. When it is -1, it means the mouse is not on any image.
Example
DWObject.RegisterEvent('OnImageAreaDeSelected', function(nImageIndex){
    alert('The selected area on the image with index '
     + nImageIndex + 'has been deselected');
});
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v5.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
OnImageAreaSelected
This event is triggered when user selects an area (draws a rectangle) or move a selected area on an image in Dynamic Web TWAIN viewer.
Syntax .RegisterEvent('OnImageAreaSelected',function(nImageIndex, left, top, right, bottom, sAreaIndex){...});
Arguments
  • number nImageIndex: Specifies the index of image in buffer. The index is 0-based.
    number left: Specifies the x-coordinate of the upper-left corner of the rectangle.
    number top: Specifies the y-coordinate of the upper-left corner of the rectangle.
    number right: Specifies the x-coordinate of the lower-right corner of the rectangle.
    number bottom: Specifies the y-coordinate of the lower-right corner of the rectangle.
    number sAreaIndex: Specifies the index of the selected area. The index is 1-based. This is useful when you have multiple selected areas on one image.
Example
DWObject.RegisterEvent('OnImageAreaSelected', function(nImageIndex, left, top,
 right, bottom, sAreaIndex){
    alert(nImageIndex + 'left: ' + left);
});
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v5.0 ✓ | v10.0 ✓ | v11.0 ✓ | v11.0 ✓ | v12.1
OnIndexChangeDragDropDone
This event is triggered when user drags and drops image(s) in the image viewer.
Syntax .RegisterEvent('OnIndexChangeDragDropDone',function(aryPairs){...});
Arguments array aryPairs: An array of the indices of the from and to images: [[file1FromIndex, file1ToIndex], [file2FromIndex, file2ToIndex],...].
Availability
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
✓ | v15.0 ✓ | v15.0 ✓ | v15.0 ✓ | v15.0

results matching ""

    No results matching ""

    results matching ""

      No results matching ""