Platforms to show: All Mac Windows Linux Cross-Platform
Back to TwainImageInfoMBS class.
TwainImageInfoMBS.BitsPerPixel as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
This value is invariant across the image. 24-bit R-G-B has BitsPerPixel = 24. 40-bit C-M-Y-K has BitsPerPixel=40. 8-bit Grayscale has BitsPerPixel = 8. Black and White has BitsPerPixel = 1.
(Read and Write property)
TwainImageInfoMBS.Compression as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
Default is no compression.
(plugin currently only supports no compression)
(Read and Write property)
TwainImageInfoMBS.ImageLength as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
If the Source doesn't know, set this field to -1 (hand scanners may do this).
-1 can only be used if the application has set ICAP_UNDEFINEDIMAGESIZE to TRUE.
(the plugin doesn't support undefined image size)
(Read and Write property)
Some examples using this property:
TwainImageInfoMBS.ImageWidth as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
If the Source doesn't know, set this field to -1 (hand scanners may do this).
-1 can only be used if the application has set ICAP_UNDEFINEDIMAGESIZE to TRUE.
(the plugin doesn't support undefined image size)
(Read and Write property)
TwainImageInfoMBS.PixelType as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
This is how the application can tell if the data is Black and White, Grayscale, or Color. Currently, the only color type defined is "tri-stimulus", or color described by three characteristics. Most popular color description methods use tri- stimulus descriptors. For simplicity, the constant used to identify tri-stimulus color is called TWPT_RBG, for R-G-B color. There is no default for this value. Fill this field with the appropriate TWPT_xxxx constant.
The plugin does currently only support RGB, GRAY, BW and PALETTE.
(Read and Write property)
TwainImageInfoMBS.Planar as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
If SamplesPerPixel > 1, indicates whether the samples follow one another on a pixel-by-pixel basis (R-G-B-R-G-B-R-G-B...) as is common with a one-pass scanner or all the pixels for each sample are grouped together (complete group of R, complete group of G, complete group of B) as is common with a three-pass scanner. If the pixel-by-pixel method (also known as "chunky") is used, the Source should set Planar = false. If the grouped method (also called "planar") is used, the Source should set Planar = true.
(Read and Write property)
TwainImageInfoMBS.RowBytes as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.5 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
This is not exactly the value as you may expect as Twain needs some rounding.
(Read and Write property)
TwainImageInfoMBS.SamplesPerPixel as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
For R-G-B, this field would be set to 3. For C-M-Y-K, 4. For Grayscale or Black and White, 1.
(Read and Write property)
TwainImageInfoMBS.XResolution as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
In pixels per inch.
(Read and Write property)
TwainImageInfoMBS.YResolution as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Twain | MBS Picture Plugin | 12.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes | All |
In pixels per inch.
(Read and Write property)
The items on this page are in the following plugins: MBS Picture Plugin.