コード例 #1
0
        public static Color1931XYZ ToXYZ(this Color1976Lab Lab, Color1931XYZ whiteLab)
        {
            Color1931XYZ XYZ = default(Color1931XYZ);

            FastLab2XYZ(Lab.L, Lab.a, Lab.b, whiteLab.X, whiteLab.Y, whiteLab.Z, out XYZ.X, out XYZ.Y, out XYZ.Z);
            return(XYZ);
        }
コード例 #2
0
        public static Color1976Lab ToLab(this Color1931XYZ XYZ, Color1931XYZ whiteLab)
        {
            Color1976Lab Lab = default(Color1976Lab);

            FastXYZ2Lab(XYZ.X, XYZ.Y, XYZ.Z, whiteLab.X, whiteLab.Y, whiteLab.Z, out Lab.L, out Lab.a, out Lab.b);
            return(Lab);
        }
コード例 #3
0
        public static Chromaticity1976uv Touv(this Color1976Lab Lab, Color1931XYZ white)
        {
            Chromaticity1976uv uv = default(Chromaticity1976uv);

            FastLab2XYZ(Lab.L, Lab.a, Lab.b, white.X, white.Y, white.Z, out float X, out float Y, out float Z);
            FastXYZ2uv(X, Y, Z, out uv.u, out uv.v);
            return(uv);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public static Color1931xyY ToxyY(this Color1976Lab Lab, Color1931XYZ whiteLab)
        {
            Color1931xyY xyY = default(Color1931xyY);

            FastLab2XYZ(Lab.L, Lab.a, Lab.b, whiteLab.X, whiteLab.Y, whiteLab.Z, out float X, out xyY.Y, out float Z);
            FastXYZ2xy(X, xyY.Y, Z, out xyY.x, out xyY.y);
            return(xyY);
        }
コード例 #6
0
        public static ColorRGB ToRGB(this Color1976Lab Lab, ColorTransformMatrix XYZtoRGB, Color1931XYZ white)
        {
            Color1931XYZ XYZ = ToXYZ(Lab, white);

            return(ToRGB(XYZ, XYZtoRGB));
        }