Platforms to show: All Mac Windows Linux Cross-Platform
Back to TwainMBS class.
TwainMBS.Acquire(modal as boolean = false, showUI as boolean = true) as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Plugin asks for asynchronously operation, so this function returns nil and success in lasterror.
If data source must be used with modal UI, this function returns with picture.
Modal can be true to ask for modal dialog. Seems to be only supported on Mac.
TwainMBS.AllDevices as TwainIdentityMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
TwainMBS.AppIdentity as TwainIdentityMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
That's the identity the plugin used to register with twain library.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
TwainMBS.CanPalette as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
TwainMBS.Constructor(Country as Integer, Language as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
TwainMBS.DefaultDevice as TwainIdentityMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
(Read and Write computed property)
Some examples using this property:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.5 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
This avoids a crash for some people.
TwainMBS.DSIdentity as TwainIdentityMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Some examples using this method:
TwainMBS.GetEnumerationCapability(ID as Integer, byref ItemType as Integer, byref Count as Integer, byref CurrentIndex as Integer, byref DefaultIndex as Integer) as Integer()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
This should work fine for all integer enum types like boolean, 8, 16 or 32 bit integers.
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.GetIntegerCapability(ID as Integer, byref Type as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
This should work fine for all integer types like boolean, 8, 16 or 32 bit integers.
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.ImageInfo as TwainImageInfoMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
TwainMBS.Imagelayout as TwainImageLayoutMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set. DataSource must be open.
(Read and Write computed property)
TwainMBS.IsDSEnabled as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Only for Windows needed for some Twain drivers. You call it after you run Acquire to let the plugin wait for the events to start the transfer.
When transfer is ready or dialog is cancelled, this method ends.
On Mac OS X or Linux this method does nothing so it's no problem calling it.
Some examples using this method:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
See also:
Some examples using this method:
TwainMBS.SelectDS(device as TwainIdentityMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
See also:
TwainMBS.SetBoolCapability(ID as Integer, Value as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
You may see problems if you use this method on a capability which is not a boolean.
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.SetFloatCapability(ID as Integer, Value as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
You may see problems if you use this method on a capability which is not a floating point value (FIX32).
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.SetInt32Capability(ID as Integer, Value as Int32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
You may see problems if you use this method on a capability which is not a 32 bit integer.
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.SetUInt16Capability(ID as Integer, Value as UInt16)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 15.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Please review Twain Documentation for details.
Please open data source before via OpenDS method.
You may see problems if you use this method on a capability which is not a 16 bit integer.
Sets lasterror and condition code.
(if lasterror is 1 and condition code is 13, the capability is not supported)
TwainMBS.SupportsMemoryTransfer as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
As our plugin uses only memory transfers, the source must support this in order to work with our plugin.
TwainMBS.TransferImage as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Twain | MBS Picture Plugin | 12.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Image data is converted to a normal RGB picture.
Can return nil on any error.
The events TransferStarted, TransferEnded and TransferProgress are called when a transfer is running.
Some examples using this method:
The items on this page are in the following plugins: MBS Picture Plugin.