mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-18 09:44:24 +08:00
Change a few cap values to uint.
This commit is contained in:
@@ -94,6 +94,18 @@ namespace Net5Console
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
|
||||
sts = caps.ICAP_PIXELTYPE.SetOrConstraint(MSG.SET, TWPT.GRAY);
|
||||
if (sts == STS.SUCCESS)
|
||||
{
|
||||
Console.WriteLine("Successfully set pixel type to GRAY.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($"Failed set pixel type: {sts}.");
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
sts = session.StartCapture(false);
|
||||
if (sts == STS.SUCCESS)
|
||||
{
|
||||
|
@@ -1331,12 +1331,12 @@ namespace NTwain
|
||||
}
|
||||
}
|
||||
|
||||
private CapWrapper<int> _printerIndex;
|
||||
public CapWrapper<int> CAP_PRINTERINDEX
|
||||
private CapWrapper<uint> _printerIndex;
|
||||
public CapWrapper<uint> CAP_PRINTERINDEX
|
||||
{
|
||||
get
|
||||
{
|
||||
return _printerIndex ?? (_printerIndex = new CapWrapper<int>(_twain, CAP.CAP_PRINTERINDEX));
|
||||
return _printerIndex ?? (_printerIndex = new CapWrapper<uint>(_twain, CAP.CAP_PRINTERINDEX));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user