Files
ntwain/NTwain/Triplets/DGImage/DGImage.ImageFileXfer.cs

26 lines
825 B
C#
Raw Normal View History

2014-04-02 19:13:15 -04:00
using System;
2014-04-02 19:01:21 -04:00
using NTwain.Data;
using NTwain.Values;
namespace NTwain.Triplets
{
2014-04-04 22:19:16 -04:00
/// <summary>
/// Represents <see cref="DataArgumentType.ImageFileXfer"/>.
/// </summary>
2014-04-02 19:01:21 -04:00
sealed class ImageFileXfer : OpBase
{
2014-04-05 16:48:28 -04:00
internal ImageFileXfer(ITwainStateInternal session) : base(session) { }
2014-04-02 19:01:21 -04:00
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via
/// the disk-file transfer mechanism. It causes the transfer to begin.
/// </summary>
/// <returns></returns>
public ReturnCode Get()
{
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get);
IntPtr z = IntPtr.Zero;
2014-04-16 06:53:05 -04:00
return Dsm.DsmEntry(Session.AppId, Session.SourceId, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get, ref z);
2014-04-02 19:01:21 -04:00
}
}
}