mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Redone the cap value read code to support all twain types (#3).
This commit is contained in:
@@ -718,7 +718,7 @@ namespace NTwain
|
||||
|
||||
if ((xferGroup & DataGroups.Image) == DataGroups.Image)
|
||||
{
|
||||
var mech = this.GetCurrentCap<XferMech>(CapabilityId.ICapXferMech);
|
||||
var mech = this.GetCurrentCap(CapabilityId.ICapXferMech).ConvertToEnum<XferMech>();
|
||||
switch (mech)
|
||||
{
|
||||
case XferMech.Native:
|
||||
@@ -737,7 +737,7 @@ namespace NTwain
|
||||
}
|
||||
if ((xferGroup & DataGroups.Audio) == DataGroups.Audio)
|
||||
{
|
||||
var mech = this.GetCurrentCap<XferMech>(CapabilityId.ACapXferMech);
|
||||
var mech = this.GetCurrentCap(CapabilityId.ACapXferMech).ConvertToEnum<XferMech>();
|
||||
switch (mech)
|
||||
{
|
||||
case XferMech.Native:
|
||||
|
||||
Reference in New Issue
Block a user