public TwainItemType ItemType { get; set; }
public:
property TwainItemType ItemType {
TwainItemType get();
void set ( TwainItemType );
}
ItemType # get and set (TwainInformation)
The type of data contained in the extended image information.
using Leadtools;
using Leadtools.Twain;
public void GetItemExample(IntPtr parent)
{
try
{
TwainSession session = new TwainSession();
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
TwainExtraImageInformation twainExtImageInfo = new TwainExtraImageInformation(1);
twainExtImageInfo.GetInformation(0).InfoId = TwainExtendedImage.BarcodeText;
twainExtImageInfo.GetInformation(0).ItemType = TwainItemType.Uint32;
session.UpdateExtraImageInformation(twainExtImageInfo);
if (twainExtImageInfo.GetInformation(0).ReturnCode == TwainReturnCode.Success)
{
for (int i = 0; i < twainExtImageInfo.GetInformation(0).Count; i++)
{
uint item = (uint)twainExtImageInfo.GetInformation(0).GetItem(i, 0);
//Do more processing on the item value
}
}
session.Shutdown();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document