using NTwain.Data; using NTwain.Values; using System; namespace NTwain.Triplets { /// /// Represents . /// public sealed class IccProfile : OpBase { internal IccProfile(ITwainStateInternal session) : base(session) { } /// /// This operation provides the application with the ICC profile associated with the image which is /// about to be transferred (state 6) or is being transferred (state 7). /// /// The profile. /// public ReturnCode Get(ref TWMemory profile) { Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get); profile = new TWMemory(); return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, DataArgumentType.IccProfile, Message.Get, ref profile); } } }