using NTwain.Data; using NTwain.Internals; namespace NTwain.Triplets { sealed class ImageMemXfer : OpBase { internal ImageMemXfer(ITwainSessionInternal session) : base(session) { } /// /// This operation is used to initiate the transfer of an image from the Source to the application via /// the Buffered Memory transfer mechanism. /// /// The xfer. /// public ReturnCode Get(TWImageMemXfer xfer) { Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.ImageMemXfer, Message.Get); return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, xfer); } } }