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

26 lines
849 B
C#
Raw Normal View History

2014-04-20 16:57:38 -04:00
using NTwain.Data;
using NTwain.Internals;
2014-04-17 19:11:11 -04:00
using System;
2014-04-02 19:01:21 -04:00
namespace NTwain.Triplets
{
2014-04-04 22:19:16 -04:00
/// <summary>
/// Represents <see cref="DataArgumentType.ImageFileXfer"/>.
/// </summary>
sealed class ImageFileXfer : TripletBase
2014-04-02 19:01:21 -04:00
{
internal ImageFileXfer(ITwainSessionInternal 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-05-20 07:25:57 -04:00
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get, ref z);
2014-04-02 19:01:21 -04:00
}
}
}