mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-08 10:34:47 +08:00
Fixed xml doc ref.
This commit is contained in:
@@ -88,7 +88,7 @@ namespace NTwain.Data
|
|||||||
public ItemType ItemType { get; private set; }
|
public ItemType ItemType { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the one value if container is <see cref="ContainerType.Array"/>.
|
/// Gets the one value if container is <see cref="NTwain.Values.ContainerType.Array"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// The one value.
|
/// The one value.
|
||||||
@@ -96,7 +96,7 @@ namespace NTwain.Data
|
|||||||
public object OneValue { get; private set; }
|
public object OneValue { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the collection values if container is <see cref="ContainerType.Enum"/> or <see cref="ContainerType.Range"/> .
|
/// Gets the collection values if container is <see cref="NTwain.Values.ContainerType.Enum"/> or <see cref="NTwain.Values.ContainerType.Range"/> .
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// The collection values.
|
/// The collection values.
|
||||||
@@ -108,11 +108,11 @@ namespace NTwain.Data
|
|||||||
#region enum prop
|
#region enum prop
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current value index if container is <see cref="ContainerType.Enum"/>.
|
/// Gets the current value index if container is <see cref="NTwain.Values.ContainerType.Enum"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int EnumCurrentIndex { get; private set; }
|
public int EnumCurrentIndex { get; private set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the default value index if container is <see cref="ContainerType.Enum" />.
|
/// Gets the default value index if container is <see cref="NTwain.Values.ContainerType.Enum" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int EnumDefaultIndex { get; private set; }
|
public int EnumDefaultIndex { get; private set; }
|
||||||
|
|
||||||
@@ -121,14 +121,14 @@ namespace NTwain.Data
|
|||||||
#region range prop
|
#region range prop
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current value if container is <see cref="ContainerType.Range" />.
|
/// Gets the current value if container is <see cref="NTwain.Values.ContainerType.Range" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// The range current value.
|
/// The range current value.
|
||||||
/// </value>
|
/// </value>
|
||||||
public object RangeCurrentValue { get; private set; }
|
public object RangeCurrentValue { get; private set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the default value if container is <see cref="ContainerType.Range" />.
|
/// Gets the default value if container is <see cref="NTwain.Values.ContainerType.Range" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// The range default value.
|
/// The range default value.
|
||||||
|
|||||||
@@ -46,9 +46,11 @@
|
|||||||
<AssemblyOriginatorKeyFile>Sign.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>Sign.snk</AssemblyOriginatorKeyFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="PresentationCore" />
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="WindowsBase" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AsyncPump.cs" />
|
<Compile Include="AsyncPump.cs" />
|
||||||
|
|||||||
@@ -888,6 +888,9 @@ namespace NTwain
|
|||||||
TWImageMemXfer xferInfo = new TWImageMemXfer();
|
TWImageMemXfer xferInfo = new TWImageMemXfer();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// how to tell if going to xfer in strip vs tile?
|
||||||
|
// if tile don't allocate memory in app?
|
||||||
|
|
||||||
xferInfo.Memory = new TWMemory
|
xferInfo.Memory = new TWMemory
|
||||||
{
|
{
|
||||||
Flags = MemoryFlags.AppOwns | MemoryFlags.Pointer,
|
Flags = MemoryFlags.AppOwns | MemoryFlags.Pointer,
|
||||||
@@ -971,6 +974,7 @@ namespace NTwain
|
|||||||
string finalFile = null;
|
string finalFile = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// no strip or tile here, just chunks
|
||||||
xferInfo.Memory = new TWMemory
|
xferInfo.Memory = new TWMemory
|
||||||
{
|
{
|
||||||
Flags = MemoryFlags.AppOwns | MemoryFlags.Pointer,
|
Flags = MemoryFlags.AppOwns | MemoryFlags.Pointer,
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ namespace NTwain
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="session">The session.</param>
|
/// <param name="session">The session.</param>
|
||||||
/// <param name="capabilityId">The capability unique identifier.</param>
|
/// <param name="capabilityId">The capability unique identifier.</param>
|
||||||
/// <param name="tryUpperWord">if set to <c>true</c> then apply to workaround for certain bad sources.</param>
|
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IList<object> GetCapabilityValues(this TwainSession session, CapabilityId capabilityId)
|
public static IList<object> GetCapabilityValues(this TwainSession session, CapabilityId capabilityId)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace NTwain
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A customized TWAIN session for use in WPF environment.
|
/// A customized TWAIN session for use in WPF environment.
|
||||||
/// Use this by using <see cref="PreFilterMessage"/> method as the target of <see cref="HwndSource.AddHook"/> delegate.
|
/// Use this by using <see cref="PreFilterMessage"/> method as the target of <see cref="System.Windows.Interop.HwndSource.AddHook"/> delegate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TwainSessionWPF : TwainSession
|
public class TwainSessionWPF : TwainSession
|
||||||
{
|
{
|
||||||
@@ -30,7 +30,7 @@ namespace NTwain
|
|||||||
public IntPtr PreFilterMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
|
public IntPtr PreFilterMessage(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
|
||||||
{
|
{
|
||||||
var winmsg = new MESSAGE(hwnd, msg, wParam, lParam);
|
var winmsg = new MESSAGE(hwnd, msg, wParam, lParam);
|
||||||
|
|
||||||
handled = base.HandleWndProcMessage(ref winmsg);
|
handled = base.HandleWndProcMessage(ref winmsg);
|
||||||
|
|
||||||
return IntPtr.Zero;
|
return IntPtr.Zero;
|
||||||
|
|||||||
Reference in New Issue
Block a user