public static Chromaticity1931xy Toxy(this Chromaticity1976uv uv) { Chromaticity1931xy xy = default(Chromaticity1931xy); Fastuv2xy(uv.u, uv.v, out xy.x, out xy.y); return(xy); }
public static Chromaticity1976uv Touv(this Chromaticity1931xy xy) { Chromaticity1976uv uv = default(Chromaticity1976uv); Fastxy2uv(xy.x, xy.y, out uv.u, out uv.v); return(uv); }
public static Chromaticity1931xy Toxy(this Color1931XYZ XYZ) { Chromaticity1931xy xy = default(Chromaticity1931xy); FastXYZ2xy(XYZ.X, XYZ.Y, XYZ.Z, out xy.x, out xy.y); return(xy); }
public static Chromaticity1931xy Toxy(this Color1976Lab Lab, Color1931XYZ white) { Chromaticity1931xy xy = default(Chromaticity1931xy); FastLab2XYZ(Lab.L, Lab.a, Lab.b, white.X, white.Y, white.Z, out float X, out float Y, out float Z); FastXYZ2xy(X, Y, Z, out xy.x, out xy.y); return(xy); }
public static Color1931XYZ ToXYZ(this Chromaticity1976uv uv, float Y) { Chromaticity1931xy xy = Toxy(uv); return(ToXYZ(xy, Y)); }
public static Color1931XYZ ToXYZ(this Chromaticity1931xy xy, float Y) { Color1931xyY xyY = new Color1931xyY(xy.x, xy.y, Y); return(ToXYZ(xyY)); }
public static ColorRGB ToRGB(this Chromaticity1976uv uv, ColorTransformMatrix XYZtoRGB) { Chromaticity1931xy xy = Toxy(uv); return(ToRGB(xy, XYZtoRGB)); }
public static ColorRGB ToRGB(this Chromaticity1931xy xy, ColorTransformMatrix XYZtoRGB) { Color1931XYZ XYZ = ToXYZ(xy, 1f); return(ToRGB(XYZ, XYZtoRGB)); }
public static Color1976Lab ToLab(this Chromaticity1931xy xy, float Y, Color1931XYZ whiteLab) { Color1931XYZ XYZ = ToXYZ(xy, Y); return(ToLab(XYZ, whiteLab)); }
public static Color1976Luv ToLuv(this Chromaticity1931xy xy, float Y, Color1931XYZ whiteLuv) { Color1931XYZ XYZ = ToXYZ(xy, Y); return(ToLuv(XYZ, whiteLuv)); }
public static Color1931xyY ToxyY(this Chromaticity1931xy xy, float Y) { return(new Color1931xyY(xy.x, xy.y, Y)); }