using NTwain.Data; using NTwain.Values; using System; namespace NTwain.Triplets { sealed class ImageMemFileXfer : OpBase { internal ImageMemFileXfer(ITwainSessionInternal session) : base(session) { } /// /// This operation is used to initiate the transfer of an image from the Source to the application via /// the Memory-File transfer mechanism. /// /// The xfer. /// 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); } } }