示例#1
0
        public static ColorSpaceLab Create(bool indirect, double[] whitePoint, double[] blackPoint)
        {
            ColorSpaceLab lab1 = ColorSpaceLab.Create(indirect, whitePoint);

            lab1.BlackPoint = DoubleArray.op_Implicit(blackPoint);
            return(lab1);
        }
示例#2
0
 public static ColorSpaceLab Create(bool indirect)
 {
     double[] numArray1 = new double[3] {
         1f, 1f, 1f
     };
     return(ColorSpaceLab.Create(indirect, numArray1));
 }
示例#3
0
        public static ColorSpaceLab Create(bool indirect, double[] whitePoint, double[] blackPoint, double[] gamma, double[] range)
        {
            ColorSpaceLab lab1 = ColorSpaceLab.Create(indirect, whitePoint);

            lab1.Gamma      = DoubleArray.op_Implicit(gamma);
            lab1.BlackPoint = DoubleArray.op_Implicit(blackPoint);
            lab1.Range.LinearArray.Set(range);
            return(lab1);
        }
示例#4
0
        public static ColorSpaceLab Create(bool indirect, double[] whitePoint)
        {
            PDFArray array1 = Library.CreateArray(2);

            array1[0] = PDF.N("Lab");
            PDFDict dict1 = Library.CreateDict();

            array1[1]           = dict1;
            dict1["WhitePoint"] = PDF.O(whitePoint);
            ColorSpaceLab lab1 = (Resources.Get(array1, typeof(ColorSpaceLab)) as ColorSpaceLab);

            if (indirect)
            {
                Library.CreateIndirect(array1);
            }
            return(lab1);
        }
示例#5
0
 public static ColorSpaceLab Create()
 {
     return(ColorSpaceLab.Create(false));
 }