2014-04-03 07:01:21 +08:00
|
|
|
All TWAIN operations are done through the a combination of
|
|
|
|
Data Group (DG), Data Argument Type (DAT), and Message (MSG)
|
|
|
|
triplets. Rather than letting consumers of this lib deal
|
|
|
|
with all the combinations themselves and risk passing the
|
2014-04-04 06:52:11 +08:00
|
|
|
wrong thing, all valid triplet combinations are simply
|
2014-04-03 07:01:21 +08:00
|
|
|
made available under this namespace.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
To get the status of the DS, just use the
|
|
|
|
"Get" method (represents MSG), in the
|
|
|
|
"Status" embedded class (represnts DAT), in the
|
|
|
|
"DGControl" class (represents DG).
|
|
|
|
|
|
|
|
or better explained in code:
|
|
|
|
|
|
|
|
DGControl.Status.Get(...)
|
|
|
|
|
2014-05-20 19:25:57 +08:00
|
|
|
and that's the triplet at-a-glance. Only triplets usable by the
|
2014-09-12 09:14:41 +08:00
|
|
|
application-side are defined here.
|
2014-05-20 19:25:57 +08:00
|
|
|
|
|
|
|
Also some of the operations are marked as internal when there are
|
|
|
|
better wrapped managed version available. Goal is to
|
|
|
|
eventually keep the exposed triplets to a minimum.
|