public static ColorSpaceLab Create(bool indirect, double[] whitePoint, double[] blackPoint) { ColorSpaceLab lab1 = ColorSpaceLab.Create(indirect, whitePoint); lab1.BlackPoint = DoubleArray.op_Implicit(blackPoint); return(lab1); }
public static ColorSpaceLab Create(bool indirect) { double[] numArray1 = new double[3] { 1f, 1f, 1f }; return(ColorSpaceLab.Create(indirect, numArray1)); }
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); }
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); }
public static ColorSpaceLab Create() { return(ColorSpaceLab.Create(false)); }