mirror of
https://github.com/soukoku/ntwain.git
synced 2025-07-15 20:31:22 +08:00
24 lines
710 B
C#
24 lines
710 B
C#
using NTwain.Data;
|
|
using NTwain.Values;
|
|
using System;
|
|
|
|
namespace NTwain.Triplets
|
|
{
|
|
public sealed class CieColor : OpBase
|
|
{
|
|
internal CieColor(TwainSession session) : base(session) { }
|
|
|
|
/// <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);
|
|
}
|
|
}
|
|
} |