Platforms to show: All Mac Windows Linux Cross-Platform

TwainMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Twain MBS Picture Plugin 12.3 ✅ Yes ✅ Yes ❌ No ❌ No Desktop only
The plugin class for scanning with TWAIN compatible scanners.

Use is like this:

  • Declare subclass of TwainMBS so you can get events.
  • Create new instance of your subclass and store object in some window/app/module property.
  • For Windows call InstallEvent.
  • To scan, call Acquire method.
  • If driver runs synchronously, a modal window shows and you get back a picture object right away when scanning is done.
  • If driver runs asynchronously, it shows a non modal window and you receive events.
  • In TransferReady event you can call TransferImage method. In example a timer is triggered so this runs in the window.
  • To cleanup, use DisableDS and CloseDS methods.
  • We recommend only to have one instance of the TwainMBS object.

When Xojo or Xojo is used (32 bit), we can of course only see and use devices with 32 bit drivers.
Once Xojo will be ported to 64bit, we can only talk to 64bit drivers.

For 64-bit on Windows you can find 64-bit TwainDSM.dll here:
https://github.com/twain/twain-dsm

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS Picture Plugin.


TwainImageLayoutMBS   -   TwainVersionMBS


The biggest plugin in space...