TWAIN ActiveX/Plug-in Windows/Mac HTTP Control/SDK

SelectedImageIndex Property

Description

[Deprecated] Replaced by GetSelectedImageIndex method and SetSelectedImageIndex method.

Returns or sets the index of the selected image.

Support information

ActiveX Edition Plug-in Edition Mac Edition
Since V6.0 Since V6.0 Since V6.4

Data type

Short

Syntax

ObjectName. SelectedImageIndex(int SelectedIndex)

Remarks

This property is invalid when the view mode is set to -1 by -1 or 1 by 1.

In Dynamic Web TWAIN Plug-in, GetSelectedImageIndex is used to get the image index, while SetSelectedImageIndex is used to set the index of the selected image.

See also

SetViewMode method, SelectedImagesCount property, SaveSelectedImagesToBytes(), AllowMultiSelect property

Sample

Javascript Sample:

<script language="javascript" type="text/javascript">
    WebTWAIN = document.getElementById("iDynamicWebTwain");//iDynamicWebTwain is the id of the Dynamic Web TWAIN on the page (An object or an embed).
    WebTWAIN.SelectedImagesCount = 2;
    WebTWAIN.SelectedImageIndex(0) = 4;// add put_ or set_ prefix
    WebTWAIN.SelectedImageIndex(1) = 3;
    var size = WebTWAIN.GetSelectedImagesSize(IMAGE_TIFF);
        Array ary = new Array(size);
    WebTWAIN.SaveSelectedImagesToBytes(size, ary);
</script >

VB Sample:

    Dim ary as Variant
    Twain.SelectedImagesCount = 2
    Twain.SelectedImageIndex[0] = 4
    Twain.SelectedImageIndex[1] = 3
    Dim size as long
    Set size = Twain.GetSelectedImagesSize(IMAGE_TIFF)
    Redim ary(size) as byte
    Twain.SaveSelectedImagesToBytes(size, ary)




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