2014-04-02 19:13:15 -04:00
|
|
|
|
using NTwain.Data;
|
2014-04-20 16:57:38 -04:00
|
|
|
|
using NTwain.Internals;
|
2014-04-02 19:01:21 -04:00
|
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
|
{
|
2014-04-04 22:19:16 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents <see cref="DataArgumentType.ExtImageInfo"/>.
|
|
|
|
|
|
/// </summary>
|
2014-09-15 07:24:13 -04:00
|
|
|
|
public sealed class ExtImageInfo : TripletBase
|
2014-05-23 18:41:18 -04:00
|
|
|
|
{
|
|
|
|
|
|
internal ExtImageInfo(ITwainSessionInternal session) : base(session) { }
|
2014-04-02 19:01:21 -04:00
|
|
|
|
|
2014-05-23 18:41:18 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This operation is used by the application to query the data source for extended image attributes.
|
|
|
|
|
|
/// The application is responsible for creating and disiposing the info object.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="info">The information.</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public ReturnCode Get(TWExtImageInfo info)
|
|
|
|
|
|
{
|
|
|
|
|
|
Session.VerifyState(7, 7, DataGroups.Image, DataArgumentType.ExtImageInfo, Message.Get);
|
2014-05-20 07:25:57 -04:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Get, info);
|
2014-05-23 18:41:18 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-04-02 19:01:21 -04:00
|
|
|
|
}
|