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:
@@ -46,7 +46,7 @@ namespace Tester.WPF
|
||||
{
|
||||
// set it up to use file xfer
|
||||
|
||||
if (this.GetCurrentCap<XferMech>(CapabilityId.ICapXferMech) == XferMech.File)
|
||||
if (this.GetCurrentCap(CapabilityId.ICapXferMech).ConvertToEnum<XferMech>() == XferMech.File)
|
||||
{
|
||||
var formats = this.CapGetImageFileFormat();
|
||||
var wantFormat = formats.Contains(FileFormat.Tiff) ? FileFormat.Tiff : FileFormat.Bmp;
|
||||
|
||||
Reference in New Issue
Block a user