mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-19 01:57:56 +08:00
Change a few cap values to uint.
This commit is contained in:
@@ -94,6 +94,18 @@ namespace Net5Console
|
|||||||
}
|
}
|
||||||
Console.WriteLine();
|
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);
|
sts = session.StartCapture(false);
|
||||||
if (sts == STS.SUCCESS)
|
if (sts == STS.SUCCESS)
|
||||||
{
|
{
|
||||||
|
@@ -1331,12 +1331,12 @@ namespace NTwain
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private CapWrapper<int> _printerIndex;
|
private CapWrapper<uint> _printerIndex;
|
||||||
public CapWrapper<int> CAP_PRINTERINDEX
|
public CapWrapper<uint> CAP_PRINTERINDEX
|
||||||
{
|
{
|
||||||
get
|
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