using NTwain.Data; using NTwain.Internals; namespace NTwain.Triplets { /// /// Represents . /// public sealed class IccProfile : OpBase { internal IccProfile(ITwainSessionInternal 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. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")] public ReturnCode Get(ref TWMemory profile) { Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get); profile = new TWMemory(); return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataArgumentType.IccProfile, Message.Get, ref profile); } } }