2014-04-03 07:13:15 +08:00
|
|
|
|
using NTwain.Data;
|
2014-04-03 07:01:21 +08:00
|
|
|
|
using NTwain.Values;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
{
|
|
|
|
|
public sealed class CieColor : OpBase
|
|
|
|
|
{
|
2014-04-04 19:25:11 +08:00
|
|
|
|
internal CieColor(ITwainSessionInternal session) : base(session) { }
|
2014-04-03 07:01:21 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This operation causes the Source to report the currently active parameters to be used in
|
|
|
|
|
/// converting acquired color data into CIE XYZ.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cieColor">Color data.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ReturnCode Get(out TWCieColor cieColor)
|
|
|
|
|
{
|
|
|
|
|
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.CieColor, Message.Get);
|
|
|
|
|
cieColor = new TWCieColor();
|
|
|
|
|
return PInvoke.DsmEntry(Session.AppId, Session.SourceId, Message.Get, cieColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|