mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-08 18:44:47 +08:00
Updated with twain 2.3 values.
This commit is contained in:
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using NTwain.Values;
|
using NTwain.Values;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using NTwain.Properties;
|
using NTwain.Properties;
|
||||||
@@ -1804,7 +1803,7 @@ namespace NTwain.Data
|
|||||||
Major = (short)version.Major,
|
Major = (short)version.Major,
|
||||||
Minor = (short)version.Minor,
|
Minor = (short)version.Minor,
|
||||||
Country = Country.Usa,
|
Country = Country.Usa,
|
||||||
Language = Language.EnglishUsa,
|
Language = Language.EnglishUSA,
|
||||||
Info = productDescription ?? string.Empty,
|
Info = productDescription ?? string.Empty,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1882,12 +1881,12 @@ namespace NTwain.Data
|
|||||||
/// color is called Rgb, for R-G-B color. There is no
|
/// color is called Rgb, for R-G-B color. There is no
|
||||||
/// default for this value.
|
/// default for this value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PixelType PixelType { get { return (Values.Cap.PixelType)_pixelType; } }
|
public PixelType PixelType { get { return (Values.PixelType)_pixelType; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The compression method used to process the data being transferred.
|
/// The compression method used to process the data being transferred.
|
||||||
/// Default is no compression.
|
/// Default is no compression.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Compression Compression { get { return (Values.Cap.Compression)_compression; } }
|
public Compression Compression { get { return (Values.Compression)_compression; } }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -2227,7 +2226,7 @@ namespace NTwain.Data
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The format of the file the Source is to fill.
|
/// The format of the file the Source is to fill.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ImageFileFormat Format { get { return (ImageFileFormat)_format; } set { _format = (ushort)value; } }
|
public FileFormat Format { get { return (FileFormat)_format; } set { _format = (ushort)value; } }
|
||||||
|
|
||||||
///// <summary>
|
///// <summary>
|
||||||
///// The volume reference number for the file. This applies to Macintosh only. On
|
///// The volume reference number for the file. This applies to Macintosh only. On
|
||||||
|
|||||||
@@ -119,11 +119,7 @@
|
|||||||
<Compile Include="Triplets\PInvoke.cs" />
|
<Compile Include="Triplets\PInvoke.cs" />
|
||||||
<Compile Include="TwainException.cs" />
|
<Compile Include="TwainException.cs" />
|
||||||
<Compile Include="TwainSession.cs" />
|
<Compile Include="TwainSession.cs" />
|
||||||
<Compile Include="Values\Cap\CapValues.cs" />
|
|
||||||
<Compile Include="Values\DataValues.cs" />
|
<Compile Include="Values\DataValues.cs" />
|
||||||
<Compile Include="Values\Cap\ICapValues.cs" />
|
|
||||||
<Compile Include="Values\ExtendedImage.cs" />
|
|
||||||
<Compile Include="Values\QuerySupportMask.cs" />
|
|
||||||
<Compile Include="Values\SourceEnableMode.cs" />
|
<Compile Include="Values\SourceEnableMode.cs" />
|
||||||
<Compile Include="Values\TwainConst.cs" />
|
<Compile Include="Values\TwainConst.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using NTwain.Data;
|
using NTwain.Data;
|
||||||
using NTwain.Values;
|
using NTwain.Values;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace NTwain
|
namespace NTwain
|
||||||
@@ -21,7 +20,7 @@ namespace NTwain
|
|||||||
/// <param name="currentCompression">The current compression.</param>
|
/// <param name="currentCompression">The current compression.</param>
|
||||||
/// <param name="canDoFileXfer">if set to <c>true</c> then allow file xfer properties.</param>
|
/// <param name="canDoFileXfer">if set to <c>true</c> then allow file xfer properties.</param>
|
||||||
/// <param name="imageInfo">The image info.</param>
|
/// <param name="imageInfo">The image info.</param>
|
||||||
internal TransferReadyEventArgs(TWPendingXfers pending, IList<ImageFileFormat> supportedFormats, ImageFileFormat currentFormat,
|
internal TransferReadyEventArgs(TWPendingXfers pending, IList<FileFormat> supportedFormats, FileFormat currentFormat,
|
||||||
IList<Compression> supportedCompressions, Compression currentCompression, bool canDoFileXfer, TWImageInfo imageInfo)
|
IList<Compression> supportedCompressions, Compression currentCompression, bool canDoFileXfer, TWImageInfo imageInfo)
|
||||||
{
|
{
|
||||||
PendingCount = pending.Count;
|
PendingCount = pending.Count;
|
||||||
@@ -126,9 +125,9 @@ namespace NTwain
|
|||||||
/// <value>
|
/// <value>
|
||||||
/// The supported formats.
|
/// The supported formats.
|
||||||
/// </value>
|
/// </value>
|
||||||
public IList<ImageFileFormat> SupportedFormats { get; private set; }
|
public IList<FileFormat> SupportedFormats { get; private set; }
|
||||||
|
|
||||||
private ImageFileFormat _imageFormat;
|
private FileFormat _imageFormat;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the image format for image xfer.
|
/// Gets or sets the image format for image xfer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -136,7 +135,7 @@ namespace NTwain
|
|||||||
/// The image format.
|
/// The image format.
|
||||||
/// </value>
|
/// </value>
|
||||||
/// <exception cref="System.NotSupportedException"></exception>
|
/// <exception cref="System.NotSupportedException"></exception>
|
||||||
public ImageFileFormat ImageFormat
|
public FileFormat ImageFormat
|
||||||
{
|
{
|
||||||
get { return _imageFormat; }
|
get { return _imageFormat; }
|
||||||
set
|
set
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ using System.Windows.Forms;
|
|||||||
using System.Windows.Interop;
|
using System.Windows.Interop;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Security.Permissions;
|
using System.Security.Permissions;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
@@ -434,10 +433,10 @@ namespace NTwain
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
IList<ImageFileFormat> formats = Enumerable.Empty<ImageFileFormat>().ToList();
|
IList<FileFormat> formats = Enumerable.Empty<FileFormat>().ToList();
|
||||||
IList<Compression> compressions = Enumerable.Empty<Compression>().ToList();
|
IList<Compression> compressions = Enumerable.Empty<Compression>().ToList();
|
||||||
bool canDoFileXfer = this.CapGetImageXferMech().Contains(XferMech.File);
|
bool canDoFileXfer = this.CapGetImageXferMech().Contains(XferMech.File);
|
||||||
var curFormat = this.GetCurrentCap<ImageFileFormat>(CapabilityId.ICapImageFileFormat);
|
var curFormat = this.GetCurrentCap<FileFormat>(CapabilityId.ICapImageFileFormat);
|
||||||
var curComp = this.GetCurrentCap<Compression>(CapabilityId.ICapCompression);
|
var curComp = this.GetCurrentCap<Compression>(CapabilityId.ICapCompression);
|
||||||
TWImageInfo imgInfo;
|
TWImageInfo imgInfo;
|
||||||
bool skip = false;
|
bool skip = false;
|
||||||
@@ -475,7 +474,7 @@ namespace NTwain
|
|||||||
|
|
||||||
if (!args.CancelAll && !args.CancelCurrent)
|
if (!args.CancelAll && !args.CancelCurrent)
|
||||||
{
|
{
|
||||||
Values.Cap.XferMech mech = this.GetCurrentCap<XferMech>(CapabilityId.ICapXferMech);
|
Values.XferMech mech = this.GetCurrentCap<XferMech>(CapabilityId.ICapXferMech);
|
||||||
|
|
||||||
if (args.CanDoFileXfer && !string.IsNullOrEmpty(args.OutputFile))
|
if (args.CanDoFileXfer && !string.IsNullOrEmpty(args.OutputFile))
|
||||||
{
|
{
|
||||||
@@ -506,17 +505,17 @@ namespace NTwain
|
|||||||
ReturnCode xrc = ReturnCode.Cancel;
|
ReturnCode xrc = ReturnCode.Cancel;
|
||||||
switch (mech)
|
switch (mech)
|
||||||
{
|
{
|
||||||
case Values.Cap.XferMech.Native:
|
case Values.XferMech.Native:
|
||||||
xrc = DGImage.ImageNativeXfer.Get(ref dataPtr);
|
xrc = DGImage.ImageNativeXfer.Get(ref dataPtr);
|
||||||
break;
|
break;
|
||||||
case Values.Cap.XferMech.File:
|
case Values.XferMech.File:
|
||||||
xrc = DGImage.ImageFileXfer.Get();
|
xrc = DGImage.ImageFileXfer.Get();
|
||||||
if (File.Exists(args.OutputFile))
|
if (File.Exists(args.OutputFile))
|
||||||
{
|
{
|
||||||
file = args.OutputFile;
|
file = args.OutputFile;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Values.Cap.XferMech.MemFile:
|
case Values.XferMech.MemFile:
|
||||||
// not supported yet
|
// not supported yet
|
||||||
//TWImageMemXfer memxfer = new TWImageMemXfer();
|
//TWImageMemXfer memxfer = new TWImageMemXfer();
|
||||||
//xrc = DGImage.ImageMemXfer.Get(memxfer);
|
//xrc = DGImage.ImageMemXfer.Get(memxfer);
|
||||||
@@ -718,7 +717,7 @@ namespace NTwain
|
|||||||
TWEvent evt = new TWEvent();
|
TWEvent evt = new TWEvent();
|
||||||
evt.pEvent = msgPtr;
|
evt.pEvent = msgPtr;
|
||||||
var rc = DGControl.Event.ProcessEvent(evt);
|
var rc = DGControl.Event.ProcessEvent(evt);
|
||||||
HandleSourceMsg(null, null, DataGroups.Control, DataArgumentType.None, evt.TWMessage, IntPtr.Zero);
|
HandleSourceMsg(null, null, DataGroups.Control, DataArgumentType.Null, evt.TWMessage, IntPtr.Zero);
|
||||||
return rc == ReturnCode.DSEvent;
|
return rc == ReturnCode.DSEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using NTwain.Data;
|
using NTwain.Data;
|
||||||
using NTwain.Values;
|
using NTwain.Values;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -288,14 +287,14 @@ namespace NTwain
|
|||||||
#region image format
|
#region image format
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the supported <see cref="ImageFileFormat"/> for the current source.
|
/// Gets the supported <see cref="FileFormat"/> for the current source.
|
||||||
/// Only call this at state 4 or higher.
|
/// Only call this at state 4 or higher.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="session">The session.</param>
|
/// <param name="session">The session.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IList<ImageFileFormat> CapGetImageFileFormat(this TwainSession session)
|
public static IList<FileFormat> CapGetImageFileFormat(this TwainSession session)
|
||||||
{
|
{
|
||||||
return session.GetCapabilityValues<ImageFileFormat>(CapabilityId.ICapImageFileFormat, true);
|
return session.GetCapabilityValues<FileFormat>(CapabilityId.ICapImageFileFormat, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -304,7 +303,7 @@ namespace NTwain
|
|||||||
/// <param name="session">The session.</param>
|
/// <param name="session">The session.</param>
|
||||||
/// <param name="format">The format.</param>
|
/// <param name="format">The format.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static ReturnCode CapSetImageFormat(this TwainSession session, ImageFileFormat format)
|
public static ReturnCode CapSetImageFormat(this TwainSession session, FileFormat format)
|
||||||
{
|
{
|
||||||
using (TWCapability formatCap = new TWCapability(CapabilityId.ICapImageFileFormat, new TWOneValue { Item = (uint)format, ItemType = Values.ItemType.UInt16 }))
|
using (TWCapability formatCap = new TWCapability(CapabilityId.ICapImageFileFormat, new TWOneValue { Item = (uint)format, ItemType = Values.ItemType.UInt16 }))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,429 +0,0 @@
|
|||||||
namespace NTwain.Values.Cap
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// CapAlarms values.
|
|
||||||
/// </summary>
|
|
||||||
public enum AlarmType : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Alarm = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
FeederError = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
FeederWarning = 2,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Barcode = 3,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
DoubleFeed = 4,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Jam = 5,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
PatchCode = 6,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Power = 7,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Skew = 8
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapCameraSide values.
|
|
||||||
/// </summary>
|
|
||||||
public enum CameraSide : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Both = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Top = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Bottom = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapClearBuffers values.
|
|
||||||
/// </summary>
|
|
||||||
public enum ClearBuffers : ushort
|
|
||||||
{
|
|
||||||
Auto = 0,
|
|
||||||
Clear = 1,
|
|
||||||
NoClear = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Indicates the type of event from the source.
|
|
||||||
/// Also CapDeviceEvent values. If used as
|
|
||||||
/// a cap value it's ushort.
|
|
||||||
/// </summary>
|
|
||||||
public enum DeviceEvent : uint
|
|
||||||
{
|
|
||||||
CheckAutomaticCapture = 0,
|
|
||||||
CheckBattery = 1,
|
|
||||||
CheckDeviceOnline = 2,
|
|
||||||
CheckFlash = 3,
|
|
||||||
CheckPowerSupply = 4,
|
|
||||||
CheckResolution = 5,
|
|
||||||
DeviceAdded = 6,
|
|
||||||
DeviceOffline = 7,
|
|
||||||
DeviceReady = 8,
|
|
||||||
DeviceRemoved = 9,
|
|
||||||
ImageCaptured = 10,
|
|
||||||
ImageDeleted = 11,
|
|
||||||
PaperDoubleFeed = 12,
|
|
||||||
PaperJam = 13,
|
|
||||||
LampFailure = 14,
|
|
||||||
PowerSave = 15,
|
|
||||||
PowerSaveNotify = 16,
|
|
||||||
|
|
||||||
CustomEvents = 0x8000
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapDuplex values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Duplex : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
None = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
OnePass = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
TwoPass = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapFeederAlignment values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FeederAlignment : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
None = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Left = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Center = 2,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Right = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapFeederOrder values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FeederOrder : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
FirstPageFirst = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
LastPageFirst = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapFeederPocket values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FeederPocket : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
PocketError = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket1 = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket2 = 2,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket3 = 3,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket4 = 4,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket5 = 5,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket6 = 6,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket7 = 7,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket8 = 8,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket9 = 9,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket10 = 10,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket11 = 11,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket12 = 12,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket13 = 13,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket14 = 14,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket15 = 15,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Pocket16 = 16,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapJobControl values.
|
|
||||||
/// </summary>
|
|
||||||
public enum JobControl : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// No job control.
|
|
||||||
/// </summary>
|
|
||||||
None = 0,
|
|
||||||
/// <summary>
|
|
||||||
/// Detect and include job separator and continue scanning.
|
|
||||||
/// </summary>
|
|
||||||
IncludeContinue = 1,
|
|
||||||
/// <summary>
|
|
||||||
/// Detect and include job separator and stop scanning.
|
|
||||||
/// </summary>
|
|
||||||
IncludeStop = 2,
|
|
||||||
/// <summary>
|
|
||||||
/// Detect and exclude job separator and continue scanning.
|
|
||||||
/// </summary>
|
|
||||||
ExcludeContinue = 3,
|
|
||||||
/// <summary>
|
|
||||||
/// Detect and exclude job separator and stop scanning.
|
|
||||||
/// </summary>
|
|
||||||
ExcludeStop = 4
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapLanguage values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Language : ushort
|
|
||||||
{
|
|
||||||
UserLocale = 0xff,
|
|
||||||
Danish = 0, /* Danish */
|
|
||||||
Dutch = 1, /* Dutch */
|
|
||||||
English = 2, /* International English */
|
|
||||||
FrenchCanadian = 3, /* French Canadian */
|
|
||||||
Finnish = 4, /* Finnish */
|
|
||||||
French = 5, /* French */
|
|
||||||
German = 6, /* German */
|
|
||||||
Icelandic = 7, /* Icelandic */
|
|
||||||
Italian = 8, /* Italian */
|
|
||||||
Norwegian = 9, /* Norwegian */
|
|
||||||
Portuguese = 10, /* Portuguese */
|
|
||||||
Spanish = 11, /* Spanish */
|
|
||||||
Swedish = 12, /* Swedish */
|
|
||||||
EnglishUsa = 13, /* U.S. English */
|
|
||||||
Afrikaans = 14,
|
|
||||||
Albania = 15,
|
|
||||||
Arabic = 16,
|
|
||||||
ArabicAlgeria = 17,
|
|
||||||
ArabicBahrain = 18,
|
|
||||||
ArabicEgypt = 19,
|
|
||||||
ArabicIraq = 20,
|
|
||||||
ArabicJordan = 21,
|
|
||||||
ArabicKuwait = 22,
|
|
||||||
ArabicLebanon = 23,
|
|
||||||
ArabicLibya = 24,
|
|
||||||
ArabicMorocco = 25,
|
|
||||||
ArabicOman = 26,
|
|
||||||
ArabicQatar = 27,
|
|
||||||
ArabicSaudiArabia = 28,
|
|
||||||
ArabicSyria = 29,
|
|
||||||
ArabicTunisia = 30,
|
|
||||||
ArabicUae = 31,/* United Arabic Emirates */
|
|
||||||
ArabicYemen = 32,
|
|
||||||
Basque = 33,
|
|
||||||
Byelorussian = 34,
|
|
||||||
Bulgarian = 35,
|
|
||||||
Catalan = 36,
|
|
||||||
Chinese = 37,
|
|
||||||
ChineseHongKong = 38,
|
|
||||||
ChinesePrc = 39,/* People's Republic Of China */
|
|
||||||
ChineseSingapore = 40,
|
|
||||||
ChineseSimplified = 41,
|
|
||||||
ChineseTaiwan = 42,
|
|
||||||
ChineseTraditional = 43,
|
|
||||||
Croatia = 44,
|
|
||||||
Czech = 45,
|
|
||||||
DutchBelgian = 46,
|
|
||||||
EnglishAustralian = 47,
|
|
||||||
EnglishCanadian = 48,
|
|
||||||
EnglishIreland = 49,
|
|
||||||
EnglishNewZealand = 50,
|
|
||||||
EnglishSouthAfrica = 51,
|
|
||||||
EnglishUK = 52,
|
|
||||||
Estonian = 53,
|
|
||||||
Faeroese = 54,
|
|
||||||
Farsi = 55,
|
|
||||||
FrenchBelgian = 56,
|
|
||||||
FrenchLuxembourg = 57,
|
|
||||||
FrenchSwiss = 58,
|
|
||||||
GermanAustrian = 59,
|
|
||||||
GermanLuxembourg = 60,
|
|
||||||
GermanLiechtenstein = 61,
|
|
||||||
GermanSwiss = 62,
|
|
||||||
Greek = 63,
|
|
||||||
Hebrew = 64,
|
|
||||||
Hungarian = 65,
|
|
||||||
Indonesian = 66,
|
|
||||||
ItalianSwiss = 67,
|
|
||||||
Japanese = 68,
|
|
||||||
Korean = 69,
|
|
||||||
KoreanJohab = 70,
|
|
||||||
Latvian = 71,
|
|
||||||
Lithuanian = 72,
|
|
||||||
NorwegianBokmal = 73,
|
|
||||||
NorwegianNynorsk = 74,
|
|
||||||
Polish = 75,
|
|
||||||
PortugueseBrazil = 76,
|
|
||||||
Romanian = 77,
|
|
||||||
Russian = 78,
|
|
||||||
SerbianLatin = 79,
|
|
||||||
Slovak = 80,
|
|
||||||
Slovenian = 81,
|
|
||||||
SpanishMexican = 82,
|
|
||||||
SpanishModern = 83,
|
|
||||||
Thai = 84,
|
|
||||||
Turkish = 85,
|
|
||||||
Ukranian = 86,
|
|
||||||
/* More Stuff Added For 1.8 */
|
|
||||||
Assamese = 87,
|
|
||||||
Bengali = 88,
|
|
||||||
Bihari = 89,
|
|
||||||
Bodo = 90,
|
|
||||||
Dogri = 91,
|
|
||||||
Gujarati = 92,
|
|
||||||
Haryanvi = 93,
|
|
||||||
Hindi = 94,
|
|
||||||
Kannada = 95,
|
|
||||||
Kashmiri = 96,
|
|
||||||
Malayalam = 97,
|
|
||||||
Marathi = 98,
|
|
||||||
Marwari = 99,
|
|
||||||
Meghalayan = 100,
|
|
||||||
Mizo = 101,
|
|
||||||
Naga = 102,
|
|
||||||
Orissi = 103,
|
|
||||||
Punjabi = 104,
|
|
||||||
Pushtu = 105,
|
|
||||||
SerbianCyrillic = 106,
|
|
||||||
Sikkimi = 107,
|
|
||||||
SwedishFinland = 108,
|
|
||||||
Tamil = 109,
|
|
||||||
Telugu = 110,
|
|
||||||
Tripuri = 111,
|
|
||||||
Urdu = 112,
|
|
||||||
Vietnamese = 113,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapPowerSupply values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PowerSupply : ushort
|
|
||||||
{
|
|
||||||
External = 0,
|
|
||||||
Battery = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapPrinter values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Printer : ushort
|
|
||||||
{
|
|
||||||
ImprinterTopBefore = 0,
|
|
||||||
ImprinterTopAfter = 1,
|
|
||||||
ImprinterBottomBefore = 2,
|
|
||||||
ImprinterBottomAfter = 3,
|
|
||||||
EndorserTopBefore = 4,
|
|
||||||
EndorserTopAfter = 5,
|
|
||||||
EndorserBottomBefore = 6,
|
|
||||||
EndorserBottomAfter = 7
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapPrinterMode values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PrinterMode : ushort
|
|
||||||
{
|
|
||||||
SingleString = 0,
|
|
||||||
MultiString = 1,
|
|
||||||
CompoundString = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CapSegmented values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Segmented : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Auto = 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,562 +0,0 @@
|
|||||||
namespace NTwain.Values.Cap
|
|
||||||
{
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapAutoDiscardBlankPages values.
|
|
||||||
/// </summary>
|
|
||||||
public enum AutoDiscardBlankPage
|
|
||||||
{
|
|
||||||
Invalid = 0,
|
|
||||||
Disable = -2,
|
|
||||||
Auto = -1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapAutoSize values.
|
|
||||||
/// </summary>
|
|
||||||
public enum AutoSize : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
None = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Auto = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Current = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapBarcodeSearchMode,
|
|
||||||
/// ICapPatchCodeSearchMode values.
|
|
||||||
/// </summary>
|
|
||||||
public enum BarcodeSearchMode : ushort
|
|
||||||
{
|
|
||||||
Horz = 0,
|
|
||||||
Vert = 1,
|
|
||||||
HorzVert = 2,
|
|
||||||
VertHorz = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapBarcodeSearchPriorities,
|
|
||||||
/// ICapSupportedBarcodeTypes values.
|
|
||||||
/// </summary>
|
|
||||||
public enum BarcodeTypes : ushort
|
|
||||||
{
|
|
||||||
Invalid = 0,
|
|
||||||
ThreeOfNine,
|
|
||||||
TwoOfFiveInterleaved = 1,
|
|
||||||
TwoOfFiveNonInterleaved = 2,
|
|
||||||
Code92 = 3,
|
|
||||||
Code128 = 4,
|
|
||||||
Ucc128 = 5,
|
|
||||||
Codabar = 6,
|
|
||||||
UpcA = 7,
|
|
||||||
UpcE = 8,
|
|
||||||
Ean8 = 9,
|
|
||||||
Ean13 = 10,
|
|
||||||
PostNet = 11,
|
|
||||||
Pdf417 = 12,
|
|
||||||
TwoOfFiveIndustrial = 13,
|
|
||||||
TwoOfFiveMatrix = 14,
|
|
||||||
TwoOfFiveDataLogic = 15,
|
|
||||||
TwoOfFiveIata = 16,
|
|
||||||
ThreeOfNineFullAscii = 17,
|
|
||||||
CodabarWithStartStop = 18,
|
|
||||||
MaxiCode = 19,
|
|
||||||
QRCode = 20
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Values for ICapBitDepthReduction.
|
|
||||||
/// </summary>
|
|
||||||
public enum BitDepthReduction : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Threshold = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Halftone = 1,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
CustHalftone = 2,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
Diffusion = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapBitOrder/ICapBitOrderCodes values.
|
|
||||||
/// </summary>
|
|
||||||
public enum BitOrder : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
LsbFirst = 0,
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
MsbFirst = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapCompression values. Allows the application and Source to identify which compression schemes they have in common
|
|
||||||
/// for Buffered Memory and File transfers. Since only certain file formats support compression, this capability must be negotiated after
|
|
||||||
/// setting the desired file format with ICAP_IMAGEFILEFORMAT.
|
|
||||||
/// </summary>
|
|
||||||
public enum Compression : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// All Sources must support this.
|
|
||||||
/// </summary>
|
|
||||||
None = 0,
|
|
||||||
/// <summary>
|
|
||||||
/// Can be used with TIFF or PICT
|
|
||||||
/// </summary>
|
|
||||||
PackBits = 1,
|
|
||||||
/// <summary>
|
|
||||||
/// From the CCITT specification (now ITU), intended for document images (can be used with TIFF).
|
|
||||||
/// </summary>
|
|
||||||
Group31D = 2,
|
|
||||||
/// <summary>
|
|
||||||
/// From the CCITT specification (now ITU), intended for document images (can be used with TIFF).
|
|
||||||
/// </summary>
|
|
||||||
Group31DEol = 3,
|
|
||||||
/// <summary>
|
|
||||||
/// From the CCITT specification (now ITU), intended for document images (can be used with TIFF).
|
|
||||||
/// </summary>
|
|
||||||
Group32D = 4,
|
|
||||||
/// <summary>
|
|
||||||
/// From the CCITT specification (now ITU), intended for document images (can be used with TIFF).
|
|
||||||
/// </summary>
|
|
||||||
Group4 = 5,
|
|
||||||
/// <summary>
|
|
||||||
/// Intended for the compression of color photographs (can be used with TIFF, JFIF or SPIFF).
|
|
||||||
/// </summary>
|
|
||||||
Jpeg = 6,
|
|
||||||
/// <summary>
|
|
||||||
/// A compression licensed by UNISYS (can be used with TIFF).
|
|
||||||
/// </summary>
|
|
||||||
Lzw = 7,
|
|
||||||
/// <summary>
|
|
||||||
/// Intended for bitonal and grayscale document images (can be used with TIFF or SPIFF).
|
|
||||||
/// </summary>
|
|
||||||
Jbig = 8,
|
|
||||||
/// <summary>
|
|
||||||
/// This compression can only be used if ICAP_IMAGEFILEFORMAT is set to TWFF_PNG.
|
|
||||||
/// </summary>
|
|
||||||
Png = 9,
|
|
||||||
/// <summary>
|
|
||||||
/// Can only be used if ICAP_IMAGEFILEFORMAT is set to TWFF_BMP.
|
|
||||||
/// </summary>
|
|
||||||
Rle4 = 10,
|
|
||||||
/// <summary>
|
|
||||||
/// Can only be used if ICAP_IMAGEFILEFORMAT is set to TWFF_BMP.
|
|
||||||
/// </summary>
|
|
||||||
Rle8 = 11,
|
|
||||||
/// <summary>
|
|
||||||
/// Can only be used if ICAP_IMAGEFILEFORMAT is set to TWFF_BMP.
|
|
||||||
/// </summary>
|
|
||||||
BitFields = 12,
|
|
||||||
/// <summary>
|
|
||||||
/// Per RFC 1951 (AKA 'Flate' and 'Deflate')
|
|
||||||
/// </summary>
|
|
||||||
Zip = 13,
|
|
||||||
/// <summary>
|
|
||||||
/// Per ISO/IEC 15444
|
|
||||||
/// </summary>
|
|
||||||
Jpeg2000 = 14
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapFeederType values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FeederType : ushort
|
|
||||||
{
|
|
||||||
General = 0,
|
|
||||||
Photo = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapFilter values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FilterType : ushort
|
|
||||||
{
|
|
||||||
Red = 0,
|
|
||||||
Green = 1,
|
|
||||||
Blue = 2,
|
|
||||||
None = 3,
|
|
||||||
White = 4,
|
|
||||||
Cyan = 5,
|
|
||||||
Magenta = 6,
|
|
||||||
Yellow = 7,
|
|
||||||
Black = 8
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapFlashUsed2 values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FlashedUsed : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Off = 1,
|
|
||||||
On = 2,
|
|
||||||
Auto = 3,
|
|
||||||
RedEye = 4
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapFlipRotation values.
|
|
||||||
/// </summary>
|
|
||||||
public enum FlipRotation : ushort
|
|
||||||
{
|
|
||||||
Book = 0,
|
|
||||||
FanFold = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapIccProfile values.
|
|
||||||
/// </summary>
|
|
||||||
public enum IccProfile : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Link = 1,
|
|
||||||
Embed = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapImageFileFormat values.
|
|
||||||
/// </summary>
|
|
||||||
public enum ImageFileFormat : ushort
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Used for document imaging. Native Linux format.
|
|
||||||
/// </summary>
|
|
||||||
Tiff = 0,
|
|
||||||
/// <summary>
|
|
||||||
/// Native Macintosh format
|
|
||||||
/// </summary>
|
|
||||||
Pict = 1,
|
|
||||||
/// <summary>
|
|
||||||
/// Native Microsoft format
|
|
||||||
/// </summary>
|
|
||||||
Bmp = 2,
|
|
||||||
/// <summary>
|
|
||||||
/// Used for document imaging
|
|
||||||
/// </summary>
|
|
||||||
Xbm = 3,
|
|
||||||
/// <summary>
|
|
||||||
/// Wrapper for JPEG images
|
|
||||||
/// </summary>
|
|
||||||
Jfif = 4,
|
|
||||||
/// <summary>
|
|
||||||
/// FlashPix, used with digital cameras
|
|
||||||
/// </summary>
|
|
||||||
Fpx = 5,
|
|
||||||
/// <summary>
|
|
||||||
/// Multi-page TIFF files
|
|
||||||
/// </summary>
|
|
||||||
TiffMulti = 6,
|
|
||||||
/// <summary>
|
|
||||||
/// An image format standard intended for use on the web, replaces GIF
|
|
||||||
/// </summary>
|
|
||||||
Png = 7,
|
|
||||||
/// <summary>
|
|
||||||
/// A standard from JPEG, intended to replace JFIF, also supports JBIG
|
|
||||||
/// </summary>
|
|
||||||
Spiff = 8,
|
|
||||||
/// <summary>
|
|
||||||
/// File format for use with digital cameras.
|
|
||||||
/// </summary>
|
|
||||||
Exif = 9,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from Adobe
|
|
||||||
/// </summary>
|
|
||||||
Pdf = 10,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from the Joint Photographic Experts Group ISO/IEC 15444-1
|
|
||||||
/// </summary>
|
|
||||||
Jp2 = 11,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from the Joint Photographic Experts Group ISO/IEC 15444-2
|
|
||||||
/// </summary>
|
|
||||||
Jpx = 13,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from LizardTech
|
|
||||||
/// </summary>
|
|
||||||
Dejavu = 14,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from Adobe PDF/A, Version 1
|
|
||||||
/// </summary>
|
|
||||||
PdfA = 15,
|
|
||||||
/// <summary>
|
|
||||||
/// A file format from Adobe PDF/A, Version 2
|
|
||||||
/// </summary>
|
|
||||||
PdfA2 = 16
|
|
||||||
}
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// Audio file format values.
|
|
||||||
///// </summary>
|
|
||||||
//public enum AudioFileFormat : ushort
|
|
||||||
//{
|
|
||||||
// Wav = 0,
|
|
||||||
// Aiff = 1,
|
|
||||||
// AU = 3,
|
|
||||||
// Snd = 4,
|
|
||||||
//}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapImageFilter values.
|
|
||||||
/// </summary>
|
|
||||||
public enum ImageFilter : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Auto = 1,
|
|
||||||
LowPass = 2,
|
|
||||||
BandPass = 3,
|
|
||||||
HighPass = 4,
|
|
||||||
Text = BandPass,
|
|
||||||
FineLine = HighPass
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapImageMerge values.
|
|
||||||
/// </summary>
|
|
||||||
public enum ImageMerge : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
FrontOnTop = 1,
|
|
||||||
FrontOnBottom = 2,
|
|
||||||
FrontOnLeft = 3,
|
|
||||||
FrontOnRight = 4
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Also ICapAutomaticColorNonColorPixelType (bw/gray),
|
|
||||||
/// ICapJpegPixelType, ICapPixelType values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PixelType : ushort
|
|
||||||
{
|
|
||||||
BlackWhite = 0,
|
|
||||||
Gray = 1,
|
|
||||||
RGB = 2,
|
|
||||||
Palette = 3,
|
|
||||||
CMY = 4,
|
|
||||||
CMYK = 5,
|
|
||||||
YUV = 6,
|
|
||||||
YUVK = 7,
|
|
||||||
CieXYZ = 8,
|
|
||||||
Lab = 9,
|
|
||||||
SRGB = 10,
|
|
||||||
//ScRGB = 11,
|
|
||||||
Infrared = 16
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapJpegQuality values.
|
|
||||||
/// </summary>
|
|
||||||
public enum JpegQuality : short
|
|
||||||
{
|
|
||||||
Invalid = 0,
|
|
||||||
Unknown = -4,
|
|
||||||
Low = -3,
|
|
||||||
Medium = -2,
|
|
||||||
High = -1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapLightPath values.
|
|
||||||
/// </summary>
|
|
||||||
public enum LightPath : ushort
|
|
||||||
{
|
|
||||||
Reflective = 0,
|
|
||||||
Transmissive = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapLightSource values.
|
|
||||||
/// </summary>
|
|
||||||
public enum LightSource : ushort
|
|
||||||
{
|
|
||||||
Red = 0,
|
|
||||||
Green = 1,
|
|
||||||
Blue = 2,
|
|
||||||
None = 3,
|
|
||||||
White = 4,
|
|
||||||
UV = 5,
|
|
||||||
IR = 6
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapNoiseFilter values.
|
|
||||||
/// </summary>
|
|
||||||
public enum NoiseFilter : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Auto = 1,
|
|
||||||
LonePixel = 2,
|
|
||||||
MajorityRule = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapOrientation values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Orientation : ushort
|
|
||||||
{
|
|
||||||
Rot0 = 0,
|
|
||||||
Rot90 = 1,
|
|
||||||
Rot180 = 2,
|
|
||||||
Rot270 = 3,
|
|
||||||
Portrait = Rot0,
|
|
||||||
Landscape = Rot270,
|
|
||||||
Auto = 4,
|
|
||||||
AutoTet = 5,
|
|
||||||
AutoPicture = 6
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapOverscan values.
|
|
||||||
/// </summary>
|
|
||||||
public enum OverScan : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Auto = 1,
|
|
||||||
TopBottom = 2,
|
|
||||||
LeftRight = 3,
|
|
||||||
All = 4
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapPatchCodeSearchPriorities,
|
|
||||||
/// ICapSupportedPatchCodeTypes values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PatchCode : ushort
|
|
||||||
{
|
|
||||||
Patch1 = 0,
|
|
||||||
Patch2 = 1,
|
|
||||||
Patch3 = 2,
|
|
||||||
Patch4 = 3,
|
|
||||||
Patch6 = 4,
|
|
||||||
PatchT = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapPixelFlavor, ICapPixelFlavorCodes values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PixelFlavor : ushort
|
|
||||||
{
|
|
||||||
Chocolate = 0,
|
|
||||||
Vanilla = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapPlanarChunky values.
|
|
||||||
/// </summary>
|
|
||||||
public enum PlanarChunky : ushort
|
|
||||||
{
|
|
||||||
Chunky = 0,
|
|
||||||
Planar = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapSupportedSizes values.
|
|
||||||
/// </summary>
|
|
||||||
public enum SupportedSize : ushort
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
A4 = 1,
|
|
||||||
JisB5 = 2,
|
|
||||||
USLetter = 3,
|
|
||||||
USLegal = 4,
|
|
||||||
A5 = 5,
|
|
||||||
IsoB4 = 6,
|
|
||||||
IsoB6 = 7,
|
|
||||||
USLedger = 9,
|
|
||||||
USExecutive = 10,
|
|
||||||
A3 = 11,
|
|
||||||
IsoB3 = 12,
|
|
||||||
A6 = 13,
|
|
||||||
C4 = 14,
|
|
||||||
C5 = 15,
|
|
||||||
C6 = 16,
|
|
||||||
FourA0 = 17,
|
|
||||||
TwoA0 = 18,
|
|
||||||
A0 = 19,
|
|
||||||
A1 = 20,
|
|
||||||
A2 = 21,
|
|
||||||
A7 = 22,
|
|
||||||
A8 = 23,
|
|
||||||
A9 = 24,
|
|
||||||
A10 = 25,
|
|
||||||
IsoB0 = 26,
|
|
||||||
IsoB1 = 27,
|
|
||||||
IsoB2 = 28,
|
|
||||||
IsoB5 = 29,
|
|
||||||
IsoB7 = 30,
|
|
||||||
IsoB8 = 31,
|
|
||||||
IsoB9 = 31,
|
|
||||||
IsoB10 = 33,
|
|
||||||
JisB0 = 34,
|
|
||||||
JisB1 = 35,
|
|
||||||
JisB2 = 36,
|
|
||||||
JisB3 = 37,
|
|
||||||
JisB4 = 38,
|
|
||||||
JisB6 = 39,
|
|
||||||
JisB7 = 40,
|
|
||||||
JisB8 = 41,
|
|
||||||
JisB9 = 42,
|
|
||||||
JisB10 = 43,
|
|
||||||
C0 = 44,
|
|
||||||
C1 = 45,
|
|
||||||
C2 = 46,
|
|
||||||
C3 = 47,
|
|
||||||
C7 = 48,
|
|
||||||
C8 = 49,
|
|
||||||
C9 = 50,
|
|
||||||
C10 = 51,
|
|
||||||
USStatement = 52,
|
|
||||||
BusinessCard = 53,
|
|
||||||
MaxSize = 54
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapUnits values.
|
|
||||||
/// </summary>
|
|
||||||
public enum Unit : ushort
|
|
||||||
{
|
|
||||||
Inches = 0,
|
|
||||||
Centimeters = 1,
|
|
||||||
Picas = 2,
|
|
||||||
Points = 3,
|
|
||||||
Twips = 4,
|
|
||||||
Pixels = 5,
|
|
||||||
Millimeters = 6
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ICapXferMech, ACapXferMech values.
|
|
||||||
/// </summary>
|
|
||||||
public enum XferMech : ushort
|
|
||||||
{
|
|
||||||
Native = 0,
|
|
||||||
File = 1,
|
|
||||||
Memory = 2,
|
|
||||||
/// <summary>
|
|
||||||
/// Audio only.
|
|
||||||
/// </summary>
|
|
||||||
File2 = 3,
|
|
||||||
MemFile = 4
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,131 +0,0 @@
|
|||||||
namespace NTwain.Values
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Contains various values for extended image codes.
|
|
||||||
/// </summary>
|
|
||||||
public static class ExtendedImage
|
|
||||||
{
|
|
||||||
public enum Codes
|
|
||||||
{
|
|
||||||
Invalid = 0,
|
|
||||||
BarcodeX = 0x1200,
|
|
||||||
BarcodeY = 0x1201,
|
|
||||||
BarcodeText = 0x1202,
|
|
||||||
BarcodeType = 0x1203,
|
|
||||||
DeshadeTop = 0x1204,
|
|
||||||
DeshadeLeft = 0x1205,
|
|
||||||
DeshadeHeight = 0x1206,
|
|
||||||
DeshadeWidth = 0x1207,
|
|
||||||
DeshadeSize = 0x1208,
|
|
||||||
SpecklesRemoved = 0x1209,
|
|
||||||
HorzLineXCoord = 0x120A,
|
|
||||||
HorzLineYCoord = 0x120B,
|
|
||||||
HorzLineLength = 0x120C,
|
|
||||||
HorzLineThickness = 0x120D,
|
|
||||||
VertLineXCoord = 0x120E,
|
|
||||||
VertLineYCoord = 0x120F,
|
|
||||||
VertLineLength = 0x1210,
|
|
||||||
VertLineThickness = 0x1211,
|
|
||||||
PatchCode = 0x1212,
|
|
||||||
EndorsedText = 0x1213,
|
|
||||||
FormConfidence = 0x1214,
|
|
||||||
FormTemplateMatch = 0x1215,
|
|
||||||
FormTemplatePageMatch = 0x1216,
|
|
||||||
FormHorzDocOffset = 0x1217,
|
|
||||||
FormVertDocOffset = 0x1218,
|
|
||||||
BarcodeCount = 0x1219,
|
|
||||||
BarcodeConfidence = 0x121A,
|
|
||||||
BarcodeRotation = 0x121B,
|
|
||||||
BarcodeTextLength = 0x121C,
|
|
||||||
DeshadeCount = 0x121D,
|
|
||||||
DeshadeBlackCountOld = 0x121E,
|
|
||||||
DeshadeBlackCountNew = 0x121F,
|
|
||||||
DeshadeBlackRLMin = 0x1220,
|
|
||||||
DeshadeBlackRLMax = 0x1221,
|
|
||||||
DeshadeWhiteCountOld = 0x1222,
|
|
||||||
DeshadeWhiteCountNew = 0x1223,
|
|
||||||
DeshadeWhiteRLMin = 0x1224,
|
|
||||||
DeshadeWhiteRLAve = 0x1225,
|
|
||||||
DeshadeWhiteRLMax = 0x1226,
|
|
||||||
BlackSpecklesRemoved = 0x1227,
|
|
||||||
WhiteSpecklesRemoved = 0x1228,
|
|
||||||
HorzLineCount = 0x1229,
|
|
||||||
VertLineCount = 0x122A,
|
|
||||||
DeskewStatus = 0x122B,
|
|
||||||
SkewOriginalAngle = 0x122C,
|
|
||||||
SkewFinalAngle = 0x122D,
|
|
||||||
SkewConfidence = 0x122E,
|
|
||||||
SkewWindowX1 = 0x122F,
|
|
||||||
SkewWindowY1 = 0x1230,
|
|
||||||
SkewWindowX2 = 0x1231,
|
|
||||||
SkewWindowY2 = 0x1232,
|
|
||||||
SkewWindowX3 = 0x1233,
|
|
||||||
SkewWindowY3 = 0x1234,
|
|
||||||
SkewWindowX4 = 0x1235,
|
|
||||||
SkewWindowY4 = 0x1236,
|
|
||||||
BookName = 0x1238, /* added 1.9 */
|
|
||||||
ChapterNumber = 0x1239,/* added 1.9 */
|
|
||||||
DocumentNumber = 0x123A, /* added 1.9 */
|
|
||||||
PageNumber = 0x123B, /* added 1.9 */
|
|
||||||
Camera = 0x123C, /* added 1.9 */
|
|
||||||
FrameNumber = 0x123D, /* added 1.9 */
|
|
||||||
Frame = 0x123E, /* added 1.9 */
|
|
||||||
PixelFlavor = 0x123F, /* added 1.9 */
|
|
||||||
IccProfile = 0x1240, /* added 1.91 */
|
|
||||||
LastSegment = 0x1241, /* added 1.91 */
|
|
||||||
SegmentNumber = 0x1242, /* added 1.91 */
|
|
||||||
MagData = 0x1243, /* added 2.0 */
|
|
||||||
MagType = 0x1244, /* added 2.0 */
|
|
||||||
PageSide = 0x1245, /* added 2.0 */
|
|
||||||
FileSystemSource = 0x1246, /* added 2.0 */
|
|
||||||
ImageMerged = 0x1247, /* added 2.1 */
|
|
||||||
MagDataLength = 0x1248, /* added 2.1 */
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The bar code’s orientation on the scanned image is described in
|
|
||||||
/// reference to a Western-style interpretation of the image.
|
|
||||||
/// </summary>
|
|
||||||
public enum BarcodeRotation : uint
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Normal reading orientation.
|
|
||||||
/// </summary>
|
|
||||||
Rot0 = 0,
|
|
||||||
/// <summary>
|
|
||||||
/// Rotated 90 degrees clockwise.
|
|
||||||
/// </summary>
|
|
||||||
Rot90 = 1,
|
|
||||||
/// <summary>
|
|
||||||
/// Rotated 180 degrees clockwise.
|
|
||||||
/// </summary>
|
|
||||||
Rot180 = 2,
|
|
||||||
/// <summary>
|
|
||||||
/// Rotated 270 degrees clockwise.
|
|
||||||
/// </summary>
|
|
||||||
Rot270 = 3,
|
|
||||||
/// <summary>
|
|
||||||
/// The orientation is not known.
|
|
||||||
/// </summary>
|
|
||||||
RotX = 4
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public enum DeskewStatus
|
|
||||||
{
|
|
||||||
Success = 0,
|
|
||||||
ReportOnly = 1,
|
|
||||||
Fail = 2,
|
|
||||||
Disabled = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public enum MagType
|
|
||||||
{
|
|
||||||
Micr = 0,
|
|
||||||
Raw = 1,
|
|
||||||
Invalid = 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
namespace NTwain.Values
|
|
||||||
{
|
|
||||||
static class QuerySupportMask
|
|
||||||
{
|
|
||||||
public const int Get = 0x1;
|
|
||||||
public const int Set = 0x2;
|
|
||||||
public const int GetDefault = 0x4;
|
|
||||||
public const int GetCurrent = 0x8;
|
|
||||||
public const int Reset = 0x10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,6 @@ using System;
|
|||||||
using NTwain.Values;
|
using NTwain.Values;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using NTwain.Data;
|
using NTwain.Data;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace NTwain.Tests
|
namespace NTwain.Tests
|
||||||
@@ -17,8 +16,8 @@ namespace NTwain.Tests
|
|||||||
{
|
{
|
||||||
// just some non-default values to test
|
// just some non-default values to test
|
||||||
TWPendingXfers pending = new TWPendingXfers();
|
TWPendingXfers pending = new TWPendingXfers();
|
||||||
List<ImageFileFormat> formats = new List<ImageFileFormat> { ImageFileFormat.Bmp, ImageFileFormat.Tiff };
|
List<FileFormat> formats = new List<FileFormat> { FileFormat.Bmp, FileFormat.Tiff };
|
||||||
ImageFileFormat curFormat = ImageFileFormat.Tiff;
|
FileFormat curFormat = FileFormat.Tiff;
|
||||||
List<Compression> compressions = new List<Compression> { Compression.None, Compression.Group4 };
|
List<Compression> compressions = new List<Compression> { Compression.None, Compression.Group4 };
|
||||||
Compression curCompress = Compression.None;
|
Compression curCompress = Compression.None;
|
||||||
bool fileXfer = true;
|
bool fileXfer = true;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ using NTwain.Data;
|
|||||||
using NTwain.Values;
|
using NTwain.Values;
|
||||||
using System.Windows.Interop;
|
using System.Windows.Interop;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using CommonWin32;
|
using CommonWin32;
|
||||||
|
|
||||||
namespace Tester.WPF
|
namespace Tester.WPF
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ using System.IO;
|
|||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using NTwain.Values.Cap;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using CommonWin32;
|
using CommonWin32;
|
||||||
|
|||||||
Reference in New Issue
Block a user