mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-18 17:47:57 +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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user