|
Available in the LEADTOOLS Imaging toolkit. |
LoadTemplate Example for Visual Basic
Dim RasterTwain As LEADRasterTwain
Dim CapVal As LEADRasterVariant
RasterTwain.LoadTemplate "c:\test.ltt"
TwainCap.CapInfo.Capability = L_ICAP_XFERMECH
TwainCap.CapInfo.ConType = L_TWON_ONEVALUE
TwainCap.CapOneValue.OneValItemType = L_TWTY_UINT16
CapVal.Type = VALUE_USHORT
CapVal.LongValue = L_TWSX_NATIVE
TwainCap.CapOneValue.OneValCapValue = CapVal
RasterTwain.SetCapability2 TwainCap, L_LTWAIN_CAPABILITY_SET
RasterTwain.SaveTemplate "c:\test.ltt"