Platforms to show: All Mac Windows Linux Cross-Platform
WIAItemMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Image Capture | MBS Win Plugin | 10.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Each Windows Image Acquisition (WIA) hardware device is represented to an application as a hierarchical tree of WiaItem objects. The WiaItem interface provides applications with the ability to query devices to discover their capabilities. It also provides access to data transfer interfaces and item properties. In addition, the WiaItem interface provides methods to enable applications to control the device.
This class encapsulates transparently the system classes for WIA 1.x and 2.x.
- 4 properties
- 20 methods
- method AnalyzeItem
- method CreateChildItem(ItemFlags as Integer, CreationFlags as Integer, ItemName as string, FullItemName as string) as WIAItemMBS
- method DataTransfer as WIADataTransferMBS
- method DeleteItem
- method DeviceCommand(command as WIAGUIDMBS) as WIAItemMBS
- method DeviceDialog(Flags as integer, Win as DesktopWindow, FolderName as string, Filename as string, paths() as string, items() as WIAItemMBS)
- method DeviceDialog(Flags as Integer, Win as window, FolderName as string, Filename as string, paths() as string, items() as WIAItemMBS)
- method DeviceDialog(Flags as Integer, WindowHandle as Integer, FolderName as string, Filename as string, paths() as string, items() as WIAItemMBS)
- method DeviceDialog(Win as DesktopWindow, Flags as integer, Intent as integer) as WIAItemMBS()
- method DeviceDialog(Win as window, Flags as Integer, Intent as Integer) as WIAItemMBS()
- method DeviceDialog(WindowHandle as Integer, Flags as Integer, Intent as Integer) as WIAItemMBS()
- method EnumerateChildItems(CategoryGUID as WIAGUIDMBS=nil) as WIAItemEnumeratorMBS
- method EnumerateDeviceCapabilities(Flags as Integer) as WIADeviceCapabilitiesEnumeratorMBS
- method FindItemByName(name as string) as WIAItemMBS
- method ItemCategory as WIAGUIDMBS
- method ItemType as Integer
- method ParentItem as WIAItemMBS
- method PropertyStorage as WIAPropertyStorageMBS
- method RootItem as WIAItemMBS
- method Transfer as WIATransferMBS
- 14 shared methods
- shared method kCategoryFeeder as WIAGUIDMBS
- shared method kCategoryFeederBack as WIAGUIDMBS
- shared method kCategoryFeederFront as WIAGUIDMBS
- shared method kCategoryFilm as WIAGUIDMBS
- shared method kCategoryFinishedFile as WIAGUIDMBS
- shared method kCategoryFlatbed as WIAGUIDMBS
- shared method kCategoryFolder as WIAGUIDMBS
- shared method kCategoryRoot as WIAGUIDMBS
- shared method kCommandChangeDocument as WIAGUIDMBS
- shared method kCommandDeleteAllItems as WIAGUIDMBS
- shared method kCommandDiagnostic as WIAGUIDMBS
- shared method kCommandSynchronize as WIAGUIDMBS
- shared method kCommandTakePicture as WIAGUIDMBS
- shared method kCommandUnloadDocument as WIAGUIDMBS
- 32 constants
Constants
Constant | Value | Description |
---|---|---|
kDeviceCommands | 1 |
One of the flag constants for the EnumerateDeviceCapabilities function.
Enumerate device commands. |
kDeviceDialogSingleImage | 2 |
One of the DeviceDialog and ImageDialog flag constants.
Only allow one image to be selected |
kDeviceDialogUseCommonUI | 4 |
One of the DeviceDialog and ImageDialog flag constants.
Give preference to the system-provided UI, if available. |
kDeviceEvents | 2 |
One of the flag constants for the EnumerateDeviceCapabilities function.
Enumerate device events. |
kIntentBestPreview | &h40000 |
One of the intent constants for GetImageDialog.
Specifies the best quality preview. |
kIntentImageTypeColor | 1 |
One of the intent constants for GetImageDialog.
Preset properties for color content. |
kIntentImageTypeGrayscale | 2 |
One of the intent constants for GetImageDialog.
Preset properties for grayscale content. |
kIntentImageTypeMask | &hF |
One of the intent constants for GetImageDialog.
Mask for all of the image type flags. |
kIntentImageTypeText | 4 |
One of the intent constants for GetImageDialog.
Preset properties for text content. |
kIntentMaximizeQuality | &h20000 |
One of the intent constants for GetImageDialog.
Preset properties to maximize image quality. |
kIntentMinimizeSize | &h10000 |
One of the intent constants for GetImageDialog.
Preset properties to minimize image size. |
kIntentNone | 0 |
One of the intent constants for GetImageDialog.
Default value. Do not preset any properties. |
kIntentSizeMask | &hF0000 |
One of the intent constants for GetImageDialog.
Mask for all of the size/quality flags. |
kSelectDeviceNoDefault | 1 | One of the Select Device Dialog and Image Dialog flag constants. |
kTypeAnalyze | &h00000010 | One of the WIA item type constants. |
kTypeAudio | &h00000020 | One of the WIA item type constants. |
kTypeBurst | &h00000800 | One of the WIA item type constants. |
kTypeDeleted | &h00000080 | One of the WIA item type constants. |
kTypeDevice | &h00000040 | One of the WIA item type constants. |
kTypeDisconnected | &h00000100 | One of the WIA item type constants. |
kTypeFile | &h00000002 | One of the WIA item type constants. |
kTypeFolder | &h00000004 | One of the WIA item type constants. Example |
kTypeFree | &h00000000 | One of the WIA item type constants. |
kTypeGenerated | &h00004000 | One of the WIA item type constants. |
kTypeHasAttachments | &h00008000 | One of the WIA item type constants. Example |
kTypeHPanorama | &h00000200 | One of the WIA item type constants. |
kTypeImage | &h00000001 | One of the WIA item type constants. |
kTypeRoot | &h00000008 | One of the WIA item type constants. |
kTypeStorage | &h00001000 | One of the WIA item type constants. |
kTypeTransfer | &h00002000 | One of the WIA item type constants. |
kTypeVideo | &h00010000 | One of the WIA item type constants. |
kTypeVPanorama | &h00000400 | One of the WIA item type constants. |
This class has no sub classes.
Some methods using this class:
- WIADeviceManager1MBS.CreateDevice(DeviceID as string) as WIAItemMBS
- WIADeviceManager1MBS.GetImageDialog(parentWindow as DesktopWindow, DeviceType as integer, Flags as integer, Intent as integer, file as folderitem, rootitem as WIAItemMBS=nil)
- WIADeviceManager1MBS.SelectDeviceDialog(parentWindow as DesktopWindow, DeviceType as integer, Flags as integer) as WIAItemMBS
- WIADeviceManager1MBS.SelectDeviceDialog(parentWindow as window, DeviceType as Integer, Flags as Integer, byref DeviceID as string) as WIAItemMBS
- WIADeviceManager1MBS.SelectDeviceDialog(parentWindowHandle as Integer, DeviceType as Integer, Flags as Integer, byref DeviceID as string) as WIAItemMBS
- WIADeviceManager2MBS.CreateDevice(DeviceID as string) as WIAItemMBS
- WIADeviceManager2MBS.SelectDeviceDialog(parentWindow as DesktopWindow, DeviceType as integer, Flags as integer) as WIAItemMBS
- WIADeviceManager2MBS.SelectDeviceDialog(parentWindow as DesktopWindow, DeviceType as integer, Flags as integer, byref DeviceID as string) as WIAItemMBS
- WIADeviceManager2MBS.SelectDeviceDialog(parentWindow as window, DeviceType as Integer, Flags as Integer, byref DeviceID as string) as WIAItemMBS
- WIADeviceManager2MBS.SelectDeviceDialog(parentWindowHandle as Integer, DeviceType as Integer, Flags as Integer, byref DeviceID as string) as WIAItemMBS
Some examples using this class:
- /Win/WIA/List devices
- /Win/WIA/List devices without dialogs
- /Win/WIA/List items WIA 1
- /Win/WIA/List items WIA 2
- /Win/WIA/WIA Scan
Blog Entries
The items on this page are in the following plugins: MBS Win Plugin.
WIAItemEnumeratorMBS - WIAPropertyEnumeratorMBS