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

26 lines
1.0 KiB
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
{
sealed class ImageNativeXfer : OpBase
{
2014-04-05 16:48:28 -04:00
internal ImageNativeXfer(ITwainStateInternal session) : base(session) { }
2014-04-02 19:01:21 -04:00
/// <summary>
/// Causes the transfer of an images data from the Source to the application, via the Native transfer
/// mechanism, to begin. The resulting data is stored in main memory in a single block. The data is
/// stored in Picture (PICT) format on the Macintosh and as a device-independent bitmap (DIB)
/// under Microsoft Windows. The size of the image that can be transferred is limited to the size of
/// the memory block that can be allocated by the Source.
/// </summary>
/// <param name="handle">The handle.</param>
/// <returns></returns>
public ReturnCode Get(ref IntPtr handle)
{
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageNativeXfer, Message.Get);
2014-04-16 06:53:05 -04:00
return Dsm.DsmEntry(Session.AppId, Session.SourceId, DataGroups.Image, DataArgumentType.ImageNativeXfer, Message.Get, ref handle);
2014-04-02 19:01:21 -04:00
}
}
}