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