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.IccProfile"/>.
|
|
|
|
|
|
/// </summary>
|
2014-07-01 07:23:55 -04:00
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Icc")]
|
2014-09-15 07:24:13 -04:00
|
|
|
|
public sealed class IccProfile : TripletBase
|
2014-04-02 19:01:21 -04:00
|
|
|
|
{
|
2014-04-20 18:42:51 -04:00
|
|
|
|
internal IccProfile(ITwainSessionInternal session) : base(session) { }
|
2014-04-02 19:01:21 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 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).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="profile">The profile.</param>
|
|
|
|
|
|
/// <returns></returns>
|
2014-04-20 20:45:08 -04:00
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")]
|
|
|
|
|
|
public ReturnCode Get(ref TWMemory profile)
|
2014-04-02 19:01:21 -04:00
|
|
|
|
{
|
|
|
|
|
|
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get);
|
|
|
|
|
|
profile = new TWMemory();
|
2014-05-20 07:25:57 -04:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataArgumentType.IccProfile, Message.Get, ref profile);
|
2014-04-02 19:01:21 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|