mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 08:09:49 -05:00
21 lines
561 B
C#
21 lines
561 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace LittleCms
|
|
{
|
|
public class CmsGlobal
|
|
{
|
|
|
|
public static CIEXYZ D50XYZ { get; } = CmsNative.cmsD50_XYZ();
|
|
public static CIExyY D50xyY { get; } = CmsNative.cmsD50_xyY();
|
|
|
|
|
|
public unsafe static CIEXYZ AdaptToIlluminant(in CIEXYZ SourceWhitePt, in CIEXYZ Illuminant, in CIEXYZ Value)
|
|
{
|
|
CmsNative.CheckError(CmsNative.cmsAdaptToIlluminant(out var result, SourceWhitePt, Illuminant, Value));
|
|
return result;
|
|
}
|
|
}
|
|
}
|