ntwain/NTwain/Triplets/DGImage/DGImage.ImageInfo.cs
2014-04-02 19:13:15 -04:00

18 lines
449 B
C#

using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{
public sealed class ImageInfo : OpBase
{
internal ImageInfo(TwainSession session) : base(session) { }
public ReturnCode Get(out TWImageInfo info)
{
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.ImageInfo, Message.Get);
info = new TWImageInfo();
return PInvoke.DsmEntry(Session.AppId, Session.SourceId, Message.Get, info);
}
}
}