mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-18 23:07:15 -05:00
25 lines
449 B
C#
25 lines
449 B
C#
using LittleCms;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MHC2Gen
|
|
{
|
|
internal static class Extension
|
|
{
|
|
|
|
public static CIExy ToXY(in this CIExyY xyY)
|
|
{
|
|
return new() { x = xyY.x, y = xyY.y };
|
|
}
|
|
public static CIExy ToXY(in this CIEXYZ xyz)
|
|
{
|
|
return xyz.ToCIExyY().ToXY();
|
|
}
|
|
|
|
|
|
}
|
|
}
|