2014-04-03 07:13:15 +08:00
|
|
|
|
using NTwain.Data;
|
2014-04-21 04:57:38 +08:00
|
|
|
|
using NTwain.Internals;
|
2014-04-03 07:01:21 +08:00
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
{
|
2014-04-05 10:19:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents <see cref="DataArgumentType.IccProfile"/>.
|
|
|
|
|
/// </summary>
|
2014-04-03 07:01:21 +08:00
|
|
|
|
public sealed class IccProfile : OpBase
|
|
|
|
|
{
|
2014-04-21 06:42:51 +08:00
|
|
|
|
internal IccProfile(ITwainSessionInternal session) : base(session) { }
|
2014-04-03 07:01:21 +08: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-21 08:45:08 +08:00
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "0#")]
|
|
|
|
|
public ReturnCode Get(ref TWMemory profile)
|
2014-04-03 07:01:21 +08:00
|
|
|
|
{
|
|
|
|
|
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get);
|
|
|
|
|
profile = new TWMemory();
|
2014-05-20 19:25:57 +08:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataArgumentType.IccProfile, Message.Get, ref profile);
|
2014-04-03 07:01:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|