Available in the LEADTOOLS Imaging toolkit. |
Transfer Options Example for Visual Basic
Dim RasterTwain As New LEADRasterTwain_U RasterTwain.InitSession hWnd RasterTwain.SelectSource RasterTwain.GetTransferOptions RasterTwain.TransferMode = L_TWAIN_TRANSFER_FILE RasterTwain.TransferFileName = "c:\\test.bmp" RasterTwain.TransferFileFormat = L_TWFF_BMP RasterTwain.TransferCompressionType = L_TWCP_NONE If RasterTwain.IsFileTransferAvailable Then MsgBox "File transfer is supported" 'Set File transfer options RasterTwain.TransferMode = L_TWAIN_TRANSFER_FILE RasterTwain.TransferFileName = "c:\\test.bmp" RasterTwain.TransferFileFormat = L_TWFF_BMP End If If RasterTwain.IsMemoryTransferAvailable Then MsgBox "Memory transfer is supported" 'Set memory transfer options RasterTwain.TransferMode = L_TWAIN_TRANSFER_MEMORY RasterTwain.TransferCompressionType = L_TWCP_NONE End If If RasterTwain.IsNativeTransferAvailable Then MsgBox "Native transfer is supported" End If RasterTwain.SetTransferOptions