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

24 lines
692 B
C#
Raw Normal View History

2014-04-02 19:13:15 -04:00
using NTwain.Data;
2014-04-02 19:01:21 -04:00
using NTwain.Values;
using System;
namespace NTwain.Triplets
{
sealed class ImageMemFileXfer : OpBase
{
2014-04-04 07:25:11 -04:00
internal ImageMemFileXfer(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 Memory-File transfer mechanism.
/// </summary>
/// <param name="xfer">The xfer.</param>
/// <returns></returns>
public ReturnCode Get(TWImageMemXfer xfer)
{
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageMemFileXfer, Message.Get);
return PInvoke.DsmEntry(Session.AppId, Session.SourceId, Message.Get, xfer);
}
}
}