示例#1
0
 //-----------------------------------------------------------
 private static void DumpScannerProps(IItem scanner)
 {
     Console.WriteLine("Scanner Properties:");
     foreach (WIA.Property prop in scanner.Properties)
     {
         int id = prop.PropertyID;
         Console.WriteLine($" {WIAPropMap.TryGetName( id ),-24} = {id} | 0x{id:X}");
     }
     Console.WriteLine();
 }
示例#2
0
 //-----------------------------------------------------------
 private static void DumpDeviceProps(Device device)
 {
     Console.WriteLine("Device Properties:");
     foreach (WIA.Property prop in device.Properties)
     {
         int id = prop.PropertyID;
         Console.WriteLine($" {WIAPropMap.TryGetName( id ),-24} = {id} | 0x{id:X}");
     }
     Console.WriteLine();
 }