Ejemplo n.º 1
0
 static KnownColorSpaces()
 {
     xyz = new XYZColorSpace();
     xyy = new xyYColorSpace();
     scrgb = new scRGBColorSpace();
     lab = new LabColorSpace();
 }
Ejemplo n.º 2
0
        internal XYZColor(XYZColorSpace colorSpace, double alpha, double x, double y, double z)
            : base(colorSpace)
        {
            this.Alpha = new ColorChannel(colorSpace.Alpha, alpha);
            this.X = new ColorChannel(colorSpace.X, x);
            this.Y = new ColorChannel(colorSpace.Y, y);
            this.Z = new ColorChannel(colorSpace.Z, z);

            this.Channels = new ColorChannelCollection(Alpha, X, Y, Z);
        }